teddit/routes/index.js

18 lines
548 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 21:24:22 +02:00
const subscriptionRoutes = require('./subscription');
2021-09-02 21:06:33 +02:00
const userRoutes = require('./user');
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 21:06:33 +02:00
allRoutes.use(userRoutes);
2021-09-02 21:24:22 +02:00
allRoutes.use(subscriptionRoutes);
2021-09-02 11:23:58 +02:00
module.exports = allRoutes;