mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-17 05:24:22 +01:00
Merge branch 'fe-routes' into 'main'
Add more known frontend routes See merge request soapbox-pub/ditto!462
This commit is contained in:
@@ -329,9 +329,12 @@ const staticFiles = serveStatic({ root: './static/' });
|
||||
// Known frontend routes
|
||||
app.get('/:acct{@.*}', frontendController);
|
||||
app.get('/:acct{@.*}/*', frontendController);
|
||||
app.get('/:bech32{^[\x21-\x7E]{1,83}1[023456789acdefghjklmnpqrstuvwxyz]{6,}$}', frontendController);
|
||||
app.get('/users/*', frontendController);
|
||||
app.get('/tags/*', frontendController);
|
||||
app.get('/statuses/*', frontendController);
|
||||
app.get('/notice/*', frontendController);
|
||||
app.get('/timeline/*', frontendController);
|
||||
|
||||
// Known static file routes
|
||||
app.get('/favicon.ico', publicFiles, staticFiles);
|
||||
|
||||
Reference in New Issue
Block a user