Add /faq` redirect (#265)

Part of https://github.com/matrix-org/matrix-public-archive/issues/257
so we can set the display name of the bot to `archive.matrix.org/faq` and
people can read about the project is about and why the bot joined.
This commit is contained in:
Eric Eastwood 2023-06-21 20:29:26 -05:00 committed by GitHub
parent fbd23d2d91
commit cf51d04433
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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
app.use('/assets', express.static(path.join(__dirname, '../../dist/assets')));