{"size": 336, "ext": "js", "max_stars_repo_path": "server/app/routes/auth.js", "max_stars_repo_name": "PavelPleshko/halogram", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/app/routes/auth.js", "max_issues_repo_name": "PavelPleshko/halogram", "max_issues_repo_issues_event_min_datetime": "2020-07-15T23:25:02.000Z", "max_issues_repo_issues_event_max_datetime": "2021-05-06T20:46:02.000Z", "max_forks_repo_path": "server/app/routes/auth.js", "max_forks_repo_name": "PavelPleshko/halogram", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 28.0, "max_line_length": 53, "alphanum_fraction": 0.7261904762}
var express = require('express');
var router = express.Router();
var authCtrl = require('../controllers/account');
var auth = require('../middlewares/authentication');


router.post('/signin', authCtrl.signin);
router.post('/register', authCtrl.register);
router.post('/logout',auth.bearer(),authCtrl.logout);


module.exports = router;