{"size": 218, "ext": "js", "max_stars_repo_path": "server/routes/authRoutes.js", "max_stars_repo_name": "leonardo-freitas-1995/Routes-NodeServer", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "server/routes/authRoutes.js", "max_issues_repo_name": "leonardo-freitas-1995/Routes-NodeServer", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/routes/authRoutes.js", "max_forks_repo_name": "leonardo-freitas-1995/Routes-NodeServer", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.8181818182, "max_line_length": 45, "alphanum_fraction": 0.5412844037}
var auth = require('../../config/auth');

module.exports = function (app) {
    app.post('/login', auth.authenticate);

    app.post('/logout', function (req, res) {
        req.logout();
        res.end();
    });
};
