From c65d81fc74f318c5afc69e242adf1aac725ca1c4 Mon Sep 17 00:00:00 2001 From: "P. Reis" Date: Mon, 4 Nov 2024 13:39:27 -0300 Subject: [PATCH] refactor: allow arbitrary well-known files to be hosted --- src/app.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app.ts b/src/app.ts index fdcacf29..9c43b25b 100644 --- a/src/app.ts +++ b/src/app.ts @@ -362,7 +362,6 @@ app.get('/api/v1/conversations', emptyArrayController); app.get('/api/v1/lists', emptyArrayController); app.use('/api/*', notImplementedController); -app.use('/.well-known/*', notImplementedController); app.use('/nodeinfo/*', notImplementedController); app.use('/oauth/*', notImplementedController); @@ -392,6 +391,9 @@ app.get('/', frontendController, indexController); // Fallback app.get('*', publicFiles, staticFiles, frontendController); +/** https://gitlab.com/soapbox-pub/ditto/-/merge_requests/578#note_2192706334 */ +app.use('/.well-known/*', notImplementedController); + app.onError(errorHandler); export default app;