changes to routes + add season route
This commit is contained in:
1 parent
e1223171b0
commit
7bf23432d6
3 files changed
+117
-5
No files matched your search
@@ -1,12 +1,26 @@
|
||||
const express = require('express');
|
||||
const entryRoutes = require('./entryRoutes');
|
||||
const userCollectionRoutes = require('./userCollectionRoutes');
|
||||
const entrySeenRoutes = require('./entrySeenRoutes');
|
||||
const entryIdsRouter = require('./entryIdsRoutes');
|
||||
const entrySeenRouter = require('./entrySeenRoutes');
|
||||
const entryRouter = require('./entryRoutes');
|
||||
const entryRatingsRouter = require('./entryRatingsRoutes');
|
||||
const killerRouter = require('./killerRoutes');
|
||||
const seasonRouter = require('./seasonRoutes');
|
||||
const episodeSeenRouter = require('./episodeSeenRoutes');
|
||||
|
||||
const router = express.Router();
|
||||
|
||||
router.use('/entries', entryRoutes);
|
||||
router.use('/entries', entryRouter);
|
||||
router.use('/user-collections', userCollectionRoutes);
|
||||
router.use('/entry-seen', entrySeenRoutes)
|
||||
router.use('/entry-seen', entrySeenRouter);
|
||||
router.use('/entry-ids', entryIdsRouter);
|
||||
router.use('/entry-ratings', entryRatingsRouter);
|
||||
|
||||
router.use('/seasons', seasonRouter);
|
||||
router.use('/episode-seen', episodeSeenRouter);
|
||||
|
||||
|
||||
|
||||
router.use('/killer', killerRouter); // ! this route is used to crash the backend
|
||||
|
||||
module.exports = router;
|
||||
Reference in new issue
Block a user