{"size": 349, "ext": "js", "max_stars_repo_path": "routes/admin/profile.js", "max_stars_repo_name": "phuhien92/nodejs-sqlite3", "max_stars_repo_stars_event_min_datetime": "2018-12-13T18:11:45.000Z", "max_stars_repo_stars_event_max_datetime": "2020-01-10T19:25:34.000Z", "max_issues_repo_path": "routes/admin/profile.js", "max_issues_repo_name": "phuhien92/nodejs-sqlite3", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "routes/admin/profile.js", "max_forks_repo_name": "phuhien92/nodejs-sqlite3", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.9285714286, "max_line_length": 47, "alphanum_fraction": 0.5845272206}
const router = require('express').Router();

// !-- profile page --//
/* admin/profile */
router.get('/', (req,res) => {
    res.render('pages/profile', {
        message: req.flash('profileMessage'),
        title: `Profile: ${req.user.username}`,
        currentPath: req.baseUrl,
        currentUser: req.user
    })
});

module.exports = router;