Skip to content

Commit

Permalink
Add /faq` redirect (#265)
Browse files Browse the repository at this point in the history
Part of #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.
  • Loading branch information
MadLittleMods authored Jun 22, 2023
1 parent fbd23d2 commit cf51d04
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions server/routes/install-routes.js
Original file line number Diff line number Diff line change
Expand Up @@ -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')));

Expand Down

0 comments on commit cf51d04

Please sign in to comment.