2021-09-02 22:00:26 +02:00
|
|
|
const galleryRoute = require('./gallery');
|
2021-09-02 21:51:37 +02:00
|
|
|
const homeRoute = require('./home');
|
2021-09-02 11:23:58 +02:00
|
|
|
const overridingRoutes = require('./overides');
|
2021-09-02 22:01:40 +02:00
|
|
|
const pollRoute = require('./poll');
|
2021-09-02 11:33:33 +02:00
|
|
|
const preferenceRoutes = require('./preferences');
|
2021-09-02 21:46:45 +02:00
|
|
|
const saveRoutes = require('./save');
|
2021-09-02 21:58:38 +02:00
|
|
|
const searchRoute = require('./search');
|
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 21:46:45 +02:00
|
|
|
allRoutes.use(saveRoutes);
|
2021-09-02 21:58:38 +02:00
|
|
|
allRoutes.use(searchRoute);
|
2021-09-02 21:51:37 +02:00
|
|
|
allRoutes.use(homeRoute);
|
2021-09-02 22:00:26 +02:00
|
|
|
allRoutes.use(galleryRoute);
|
2021-09-02 22:01:40 +02:00
|
|
|
allRoutes.use(pollRoute);
|
2021-09-02 11:23:58 +02:00
|
|
|
|
|
|
|
module.exports = allRoutes;
|