mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
add support for assetlinks.json well-known file
This commit is contained in:
parent
d46af51604
commit
31de1f6176
1 changed files with 4 additions and 3 deletions
|
|
@ -192,8 +192,12 @@ app.use(
|
|||
|
||||
app.get('/metrics', metricsController);
|
||||
|
||||
const publicFiles = serveStatic({ root: './public/' });
|
||||
const staticFiles = serveStatic({ root: './static/' });
|
||||
|
||||
app.get('/.well-known/nodeinfo', nodeInfoController);
|
||||
app.get('/.well-known/nostr.json', nostrController);
|
||||
app.get('/.well-known/assetlinks.json', publicFiles);
|
||||
|
||||
app.get('/nodeinfo/:version', nodeInfoSchemaController);
|
||||
app.get('/manifest.webmanifest', manifestController);
|
||||
|
|
@ -366,9 +370,6 @@ app.use('/.well-known/*', notImplementedController);
|
|||
app.use('/nodeinfo/*', notImplementedController);
|
||||
app.use('/oauth/*', notImplementedController);
|
||||
|
||||
const publicFiles = serveStatic({ root: './public/' });
|
||||
const staticFiles = serveStatic({ root: './static/' });
|
||||
|
||||
// Known frontend routes
|
||||
app.get('/:acct{@.*}', frontendController);
|
||||
app.get('/:acct{@.*}/*', frontendController);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue