Add /faq` redirect

Part of https://github.com/matrix-org/matrix-public-archive/issues/257
This commit is contained in:
Eric Eastwood 2023-06-21 20:17:33 -05:00
parent fbd23d2d91
commit e043020815
1 changed files with 8 additions and 0 deletions

View File

@ -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')));