teddit/routes/gallery.js

8 lines
195 B
JavaScript
Raw Permalink Normal View History

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