{"size": 387, "ext": "js", "max_stars_repo_path": "lab4/routes/index.js", "max_stars_repo_name": "BJCheng/cs554-assignments", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "lab4/routes/index.js", "max_issues_repo_name": "BJCheng/cs554-assignments", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "lab4/routes/index.js", "max_forks_repo_name": "BJCheng/cs554-assignments", "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": 29.7692307692, "max_line_length": 48, "alphanum_fraction": 0.6330749354}
var defaultRouter = require('./default-router');
var dataRouter = require('./data-router');
var contactRouter = require('./contact-router');

module.exports = function configRoutes(app) {
    app.use('/', defaultRouter);
    app.use('/data', dataRouter);
    app.use('/contact', contactRouter);

    app.get('*', (req, res) => {
        res.status(404).send('invalid request');
    });
}