{"size": 337, "ext": "js", "max_stars_repo_path": "api/auth/router.js", "max_stars_repo_name": "buildweek-foodiefun/backend", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "api/auth/router.js", "max_issues_repo_name": "buildweek-foodiefun/backend", "max_issues_repo_issues_event_min_datetime": "2020-09-06T17:00:48.000Z", "max_issues_repo_issues_event_max_datetime": "2021-09-01T19:53:50.000Z", "max_forks_repo_path": "api/auth/router.js", "max_forks_repo_name": "buildweek-foodiefun/backend", "max_forks_repo_forks_event_min_datetime": "2019-08-02T13:37:01.000Z", "max_forks_repo_forks_event_max_datetime": "2019-08-15T16:00:36.000Z"}
{"max_stars_count": null, "max_issues_count": 3, "max_forks_count": 2, "avg_line_length": 28.0833333333, "max_line_length": 79, "alphanum_fraction": 0.7596439169}
const express = require('express');
const controller = require('./controller');
const middleware = require('./middleware');

const router = express.Router();

router.post('/register', middleware.checkBodyForRegister, controller.register);

router.post('/login', middleware.checkBodyForLogin, controller.login);

module.exports = router;
