{"size": 820, "ext": "js", "max_stars_repo_path": "src/routes/authRouter.js", "max_stars_repo_name": "riderjensen/usabilityTesting", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "src/routes/authRouter.js", "max_issues_repo_name": "riderjensen/usabilityTesting", "max_issues_repo_issues_event_min_datetime": "2018-12-01T17:41:31.000Z", "max_issues_repo_issues_event_max_datetime": "2019-04-12T14:34:39.000Z", "max_forks_repo_path": "src/routes/authRouter.js", "max_forks_repo_name": "riderjensen/usabilityTesting", "max_forks_repo_forks_event_min_datetime": "2019-01-30T19:01:35.000Z", "max_forks_repo_forks_event_max_datetime": "2019-02-13T00:54:15.000Z"}
{"max_stars_count": null, "max_issues_count": 23, "max_forks_count": 2, "avg_line_length": 24.1176470588, "max_line_length": 64, "alphanum_fraction": 0.7548780488}
// required files
const express = require('express');

const authController = require('../controllers/authController');

const authRouter = express.Router();

function router() {
	authRouter.route('/')
		.all(authController.checkUserLog);

	authRouter.route('/signUp')
		.post(authController.postSignUp)
		.get(authController.sendRedirect);

	authRouter.route('/signIn')
		.post(authController.postSignIn)
		.get(authController.sendRedirect);

	authRouter.route('/profile')
		.all(authController.checkUserLog)
		.get(authController.loadProfile);

	authRouter.route('/delete')
		.all(authController.checkUserLog)
		.post(authController.deleteTest);

	authRouter.route('/copy')
		.all(authController.checkUserLog)
		.post(authController.copyTest);
	return authRouter;
}
// exporting out the router
module.exports = router;