{"size": 838, "ext": "js", "max_stars_repo_path": "controllers/routes.js", "max_stars_repo_name": "raj-patra/fragile-express", "max_stars_repo_stars_event_min_datetime": "2021-11-21T17:21:18.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-21T17:21:18.000Z", "max_issues_repo_path": "controllers/routes.js", "max_issues_repo_name": "raj-patra/fragile-express", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "controllers/routes.js", "max_forks_repo_name": "raj-patra/fragile-express", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 27.0322580645, "max_line_length": 50, "alphanum_fraction": 0.6730310263}
const express = require("express");
const router = express.Router();
const constants = require('../helpers/constants');

const random = require('./random');
const quotes = require('./quotes');
const shows = require('./shows');
const trivia = require('./trivia');
const personalities = require('./personalities');
const games = require('./games');
const jokes = require('./jokes');
const memes = require('./memes');
const images = require('./images');


router.get('/', (_, res)=>{
    res.status(200).json(constants.api);
});

router.use("/random", random);
router.use("/quotes", quotes);
router.use("/shows", shows);
router.use("/trivia", trivia);
router.use("/personalities", personalities);
router.use("/games", games);
router.use("/jokes", jokes);
router.use("/memes", memes);
router.use("/images", images);

module.exports = router;
