Fix matching @ routes in app

This commit is contained in:
Alex Gleason 2024-08-09 21:07:41 -05:00
parent 4bf3096454
commit 443c8a43f7
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -327,8 +327,8 @@ const publicFiles = serveStatic({ root: './public/' });
const staticFiles = serveStatic({ root: './static/' });
// Known frontend routes
app.get('/@:acct', frontendController);
app.get('/@:acct/*', frontendController);
app.get('/:acct{@.*}', frontendController);
app.get('/:acct{@.*}/*', frontendController);
app.get('/users/*', frontendController);
app.get('/statuses/*', frontendController);
app.get('/notice/*', frontendController);