mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-25 08:39:26 +01:00
separate poll route
This commit is contained in:
parent
2266c8f0f8
commit
a441ecac33
@ -1,6 +1,7 @@
|
||||
const galleryRoute = require('./gallery');
|
||||
const homeRoute = require('./home');
|
||||
const overridingRoutes = require('./overides');
|
||||
const pollRoute = require('./poll');
|
||||
const preferenceRoutes = require('./preferences');
|
||||
const saveRoutes = require('./save');
|
||||
const searchRoute = require('./search');
|
||||
@ -21,5 +22,6 @@ allRoutes.use(saveRoutes);
|
||||
allRoutes.use(searchRoute);
|
||||
allRoutes.use(homeRoute);
|
||||
allRoutes.use(galleryRoute);
|
||||
allRoutes.use(pollRoute);
|
||||
|
||||
module.exports = allRoutes;
|
||||
|
7
routes/poll.js
Normal file
7
routes/poll.js
Normal file
@ -0,0 +1,7 @@
|
||||
const pollRoute = require('express').Router();
|
||||
|
||||
pollRoute.get('/poll/:id', (req, res, next) => {
|
||||
return res.redirect(`/comments/${req.params.id}`);
|
||||
});
|
||||
|
||||
module.exports = pollRoute;
|
Loading…
Reference in New Issue
Block a user