Skip to content

Commit

Permalink
fix: handle redirecting to patreon
Browse files Browse the repository at this point in the history
  • Loading branch information
aalemayhu committed Feb 17, 2023
1 parent c9ac77e commit 43f9d9e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit 43f9d9e

Please sign in to comment.