{"size": 371, "ext": "js", "max_stars_repo_path": "src/backend/routes/index.js", "max_stars_repo_name": "jeremykenedy/Bored-API", "max_stars_repo_stars_event_min_datetime": "2018-08-04T07:43:34.000Z", "max_stars_repo_stars_event_max_datetime": "2022-03-26T11:29:12.000Z", "max_issues_repo_path": "src/backend/routes/index.js", "max_issues_repo_name": "jeremykenedy/Bored-API", "max_issues_repo_issues_event_min_datetime": "2018-08-28T22:10:46.000Z", "max_issues_repo_issues_event_max_datetime": "2022-03-26T17:33:51.000Z", "max_forks_repo_path": "src/backend/routes/index.js", "max_forks_repo_name": "jeremykenedy/Bored-API", "max_forks_repo_forks_event_min_datetime": "2019-03-22T21:01:30.000Z", "max_forks_repo_forks_event_max_datetime": "2022-03-26T11:29:14.000Z"}
{"max_stars_count": 116, "max_issues_count": 39, "max_forks_count": 42, "avg_line_length": 19.5263157895, "max_line_length": 61, "alphanum_fraction": 0.6388140162}
const express = require('express');
const {express: expressMiddlware} = require('@b/middleware');

module.exports = function() {
	let router = express.Router();

	expressMiddlware(router);

	router.get('/api', (req, res) => {
		res.json({'message': 'Bored API'});
	});

	require('./v1')(router);
	require('./v2')(router);
	require('./error')(router);

	return router;
};
