{"size": 718, "ext": "js", "max_stars_repo_path": "routes/admin.js", "max_stars_repo_name": "PritBPatel1845/PersonalPortfolio", "max_stars_repo_stars_event_min_datetime": "2018-11-15T05:59:10.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-08T06:01:29.000Z", "max_issues_repo_path": "routes/admin.js", "max_issues_repo_name": "PritBPatel1845/PersonalPortfolio", "max_issues_repo_issues_event_min_datetime": "2021-05-07T22:11:49.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-22T08:50:05.000Z", "max_forks_repo_path": "routes/admin.js", "max_forks_repo_name": "PritBPatel1845/PersonalPortfolio", "max_forks_repo_forks_event_min_datetime": "2020-09-01T01:43:39.000Z", "max_forks_repo_forks_event_max_datetime": "2020-09-01T01:43:39.000Z"}
{"max_stars_count": 3, "max_issues_count": 2, "max_forks_count": 1, "avg_line_length": 27.6153846154, "max_line_length": 60, "alphanum_fraction": 0.7493036212}
var express = require('express');
var router = express.Router();

var controller = require('../controllers/admin-controller');

/* GET home page. */
router.get('/', controller.home_get);

//Login Routes
router.get('/login', controller.login_get);
router.post('/login', controller.login_post);
router.get('/logout', controller.logout_get);


//Project Routes
router.get('/projects', controller.projects_get);

router.get('/new-project', controller.new_project_get);
router.post('/new-project', controller.new_project_post);

router.get('/edit-project', controller.edit_project_get);
router.post('/edit-project', controller.edit_project_post);

router.get('/messages', controller.messages_get);

module.exports = router;