From cf51d0443396ac5184c2a0aa81f4b4163d6d1e95 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Wed, 21 Jun 2023 20:29:26 -0500 Subject: [PATCH] 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. --- server/routes/install-routes.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/routes/install-routes.js b/server/routes/install-routes.js index 01071a5..316fbc7 100644 --- a/server/routes/install-routes.js +++ b/server/routes/install-routes.js @@ -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')));