Skip to content

Commit

Permalink
🚀 Add support for singular/plural route names
Browse files Browse the repository at this point in the history
  • Loading branch information
Ovi committed Jan 29, 2023
1 parent ed035e0 commit b1a3f18
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/routes/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ const httpStatusRoutes = require('./http');

router.use('/', forceHTTPS, staticRoutes);
router.use('/auth', authRoutes);
router.use('/carts', cartRoutes);
router.use('/comments', commentRoutes);
router.use('/posts', postRoutes);
router.use('/products', productRoutes);
router.use('/quotes', quoteRoutes);
router.use('/todos', todoRoutes);
router.use('/users', userRoutes);
router.use('/http', httpStatusRoutes);
router.use(['/cart', '/carts'], cartRoutes);
router.use(['/comment', '/comments'], commentRoutes);
router.use(['/post', '/posts'], postRoutes);
router.use(['/product', '/products'], productRoutes);
router.use(['/quote', '/quotes'], quoteRoutes);
router.use(['/todo', '/todos'], todoRoutes);
router.use(['/user', '/users'], userRoutes);
router.use(['/http', '/https'], httpStatusRoutes);

module.exports = router;

0 comments on commit b1a3f18

Please sign in to comment.