From 43f9d9e64ada8134dc178318e9365398fd6ca47b Mon Sep 17 00:00:00 2001 From: Alexander Alemayhu Date: Fri, 17 Feb 2023 18:59:51 +0100 Subject: [PATCH] fix: handle redirecting to patreon --- src/server.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/server.ts b/src/server.ts index cd5c261e9..9c8a539e9 100644 --- a/src/server.ts +++ b/src/server.ts @@ -77,6 +77,9 @@ async function serve() { app.use('/api/download', download); app.use('/api/favorite', favorite); app.use('/api/templates', templates); + app.get('/patr*on', (req, res) => + res.redirect('https://www.patreon.com/alemayhu') + ); // Note: this has to be the last handler app.get('*', (_req, res) => {