teddit/routes/poll.js
2021-09-02 21:01:40 +01:00

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;