mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 03:19:46 +00:00
refactor: allow arbitrary well-known files to be hosted
This commit is contained in:
parent
04cc8d6ab4
commit
c65d81fc74
1 changed files with 3 additions and 1 deletions
|
|
@ -362,7 +362,6 @@ app.get('/api/v1/conversations', emptyArrayController);
|
||||||
app.get('/api/v1/lists', emptyArrayController);
|
app.get('/api/v1/lists', emptyArrayController);
|
||||||
|
|
||||||
app.use('/api/*', notImplementedController);
|
app.use('/api/*', notImplementedController);
|
||||||
app.use('/.well-known/*', notImplementedController);
|
|
||||||
app.use('/nodeinfo/*', notImplementedController);
|
app.use('/nodeinfo/*', notImplementedController);
|
||||||
app.use('/oauth/*', notImplementedController);
|
app.use('/oauth/*', notImplementedController);
|
||||||
|
|
||||||
|
|
@ -392,6 +391,9 @@ app.get('/', frontendController, indexController);
|
||||||
// Fallback
|
// Fallback
|
||||||
app.get('*', publicFiles, staticFiles, frontendController);
|
app.get('*', publicFiles, staticFiles, frontendController);
|
||||||
|
|
||||||
|
/** https://gitlab.com/soapbox-pub/ditto/-/merge_requests/578#note_2192706334 */
|
||||||
|
app.use('/.well-known/*', notImplementedController);
|
||||||
|
|
||||||
app.onError(errorHandler);
|
app.onError(errorHandler);
|
||||||
|
|
||||||
export default app;
|
export default app;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue