mirror of
https://codeberg.org/tacerus/teddit.git
synced 2024-11-25 16:49:26 +01:00
support short gallery urls
This commit is contained in:
parent
03a8f06e48
commit
6cd00468e4
@ -68,6 +68,10 @@ module.exports = (app, redis, fetch, RedditAPI) => {
|
|||||||
app.get('/privacy', (req, res, next) => {
|
app.get('/privacy', (req, res, next) => {
|
||||||
return res.render('privacypolicy', { user_preferences: req.cookies })
|
return res.render('privacypolicy', { user_preferences: req.cookies })
|
||||||
})
|
})
|
||||||
|
|
||||||
|
app.get('/gallery/:id', (req, res, next) => {
|
||||||
|
return res.redirect(`/comments/${req.params.id}`)
|
||||||
|
})
|
||||||
|
|
||||||
app.get('/subreddits/:sort?', (req, res, next) => {
|
app.get('/subreddits/:sort?', (req, res, next) => {
|
||||||
let q = req.query.q
|
let q = req.query.q
|
||||||
|
Loading…
Reference in New Issue
Block a user