From e043020815b4abb2b62f81f82b256f4927874966 Mon Sep 17 00:00:00 2001 From: Eric Eastwood Date: Wed, 21 Jun 2023 20:17:33 -0500 Subject: [PATCH] Add /faq` redirect Part of https://github.com/matrix-org/matrix-public-archive/issues/257 --- 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')));