add support for /poll urls

This commit is contained in:
teddit 2021-03-21 23:06:05 +01:00
parent ef07b9af6e
commit 2aab161527

View File

@ -73,6 +73,10 @@ module.exports = (app, redis, fetch, RedditAPI) => {
return res.redirect(`/comments/${req.params.id}`)
})
app.get('/poll/:id', (req, res, next) => {
return res.redirect(`/comments/${req.params.id}`)
})
app.get('/saved', (req, res, next) => {
let saved = req.cookies.saved