teddit-reddit-frontend-alte.../routes/poll.js

8 lines
183 B
JavaScript
Raw Normal View History

2021-09-02 22:01:40 +02:00
const pollRoute = require('express').Router();
pollRoute.get('/poll/:id', (req, res, next) => {
return res.redirect(`/comments/${req.params.id}`);
});
module.exports = pollRoute;