Add /faq` redirect
Part of https://github.com/matrix-org/matrix-public-archive/issues/257
This commit is contained in:
parent
fbd23d2d91
commit
e043020815
|
@ -39,6 +39,14 @@ function installRoutes(app) {
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|
||||||
|
app.get(
|
||||||
|
'/faq',
|
||||||
|
identifyRoute('faq'),
|
||||||
|
asyncHandler(async function (req, res) {
|
||||||
|
res.redirect('https://github.com/matrix-org/matrix-public-archive/blob/main/docs/faq.md');
|
||||||
|
})
|
||||||
|
);
|
||||||
|
|
||||||
// Our own archive app styles and scripts
|
// Our own archive app styles and scripts
|
||||||
app.use('/assets', express.static(path.join(__dirname, '../../dist/assets')));
|
app.use('/assets', express.static(path.join(__dirname, '../../dist/assets')));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue