mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-29 02:59:26 +01:00
add support for /poll urls
This commit is contained in:
parent
ef07b9af6e
commit
2aab161527
@ -73,6 +73,10 @@ module.exports = (app, redis, fetch, RedditAPI) => {
|
|||||||
return res.redirect(`/comments/${req.params.id}`)
|
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) => {
|
app.get('/saved', (req, res, next) => {
|
||||||
let saved = req.cookies.saved
|
let saved = req.cookies.saved
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user