{"size": 391, "ext": "js", "max_stars_repo_path": "server/router.js", "max_stars_repo_name": "KostaMalsev/react-babel-standalone", "max_stars_repo_stars_event_min_datetime": "2018-01-23T12:38:36.000Z", "max_stars_repo_stars_event_max_datetime": "2021-10-14T06:56:46.000Z", "max_issues_repo_path": "server/router.js", "max_issues_repo_name": "valera-rozuvan/react-redux-babel-standalone", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "server/router.js", "max_forks_repo_name": "valera-rozuvan/react-redux-babel-standalone", "max_forks_repo_forks_event_min_datetime": "2018-01-23T10:57:59.000Z", "max_forks_repo_forks_event_max_datetime": "2021-11-21T09:59:35.000Z"}
{"max_stars_count": 2, "max_issues_count": null, "max_forks_count": 4, "avg_line_length": 21.7222222222, "max_line_length": 73, "alphanum_fraction": 0.6189258312}
const Router = {};

const projRoot = __dirname + '/..';

Router.index = (request, response) => {
    response.sendFile('index.html', { root: projRoot + '/web_app' });
};

Router.error = (request, response) => {
    throw new Error('Oops!');
};

Router.notFound = (request, response) => {
    response.sendFile('not_found.html', { root: projRoot + '/web_app' });
};

module.exports = Router;
