mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-22 06:49:26 +01:00
8 lines
183 B
JavaScript
8 lines
183 B
JavaScript
const pollRoute = require('express').Router();
|
|
|
|
pollRoute.get('/poll/:id', (req, res, next) => {
|
|
return res.redirect(`/comments/${req.params.id}`);
|
|
});
|
|
|
|
module.exports = pollRoute;
|