mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
Merge branch 'fe-routes' into 'main'
Add more known frontend routes See merge request soapbox-pub/ditto!462
This commit is contained in:
commit
8adc87f1d9
1 changed files with 3 additions and 0 deletions
|
|
@ -329,9 +329,12 @@ const staticFiles = serveStatic({ root: './static/' });
|
||||||
// Known frontend routes
|
// Known frontend routes
|
||||||
app.get('/:acct{@.*}', frontendController);
|
app.get('/:acct{@.*}', frontendController);
|
||||||
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('/users/*', frontendController);
|
||||||
|
app.get('/tags/*', frontendController);
|
||||||
app.get('/statuses/*', frontendController);
|
app.get('/statuses/*', frontendController);
|
||||||
app.get('/notice/*', frontendController);
|
app.get('/notice/*', frontendController);
|
||||||
|
app.get('/timeline/*', frontendController);
|
||||||
|
|
||||||
// Known static file routes
|
// Known static file routes
|
||||||
app.get('/favicon.ico', publicFiles, staticFiles);
|
app.get('/favicon.ico', publicFiles, staticFiles);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue