teddit/routes/index.js

14 lines
394 B
JavaScript
Raw Normal View History

2021-09-02 11:23:58 +02:00
const overridingRoutes = require('./overides');
2021-09-02 11:33:33 +02:00
const preferenceRoutes = require('./preferences');
2021-09-02 11:27:28 +02:00
const staticRoutes = require('./static');
2021-09-02 20:56:37 +02:00
const subredditRoutes = require('./subreddit');
2021-09-02 11:23:58 +02:00
const allRoutes = require('express').Router();
allRoutes.use(overridingRoutes);
2021-09-02 11:27:28 +02:00
allRoutes.use(staticRoutes);
2021-09-02 11:33:33 +02:00
allRoutes.use(preferenceRoutes);
2021-09-02 20:56:37 +02:00
allRoutes.use(subredditRoutes);
2021-09-02 11:23:58 +02:00
module.exports = allRoutes;