{"size": 289, "ext": "js", "max_stars_repo_path": "routes/routes.js", "max_stars_repo_name": "TibixDev/VulnerabiliTea", "max_stars_repo_stars_event_min_datetime": "2021-07-09T12:41:19.000Z", "max_stars_repo_stars_event_max_datetime": "2021-09-01T21:47:48.000Z", "max_issues_repo_path": "routes/routes.js", "max_issues_repo_name": "TibixDev/VulnerabiliTea", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "routes/routes.js", "max_forks_repo_name": "TibixDev/VulnerabiliTea", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 36.125, "max_line_length": 91, "alphanum_fraction": 0.615916955}
const fs = require('fs'),
    path = require('path');

let routes = fs.readdirSync(__dirname).filter(x => x.endsWith('.js') && x != 'routes.js');
for (let route of routes) {
    const router = require(path.join(__dirname, route));
    module.exports[route.split('.')[0]] = router;
}