diff --git a/src/app.ts b/src/app.ts index 6c6952a..f6fd60d 100644 --- a/src/app.ts +++ b/src/app.ts @@ -13,6 +13,7 @@ import { emptyArrayController, emptyObjectController } from './controllers/api/f import { homeController } from './controllers/api/timelines.ts'; import instanceController from './controllers/api/instance.ts'; import { createTokenController, oauthAuthorizeController, oauthController } from './controllers/api/oauth.ts'; +import { frontendConfigController } from './controllers/api/pleroma.ts'; import { preferencesController } from './controllers/api/preferences.ts'; import { searchController } from './controllers/api/search.ts'; import { @@ -77,6 +78,8 @@ app.get('/api/v1/preferences', preferencesController); app.get('/api/v1/search', searchController); app.get('/api/v2/search', searchController); +app.get('/api/pleroma/frontend_configurations', frontendConfigController); + // Not (yet) implemented. app.get('/api/v1/notifications', emptyArrayController); app.get('/api/v1/bookmarks', emptyArrayController); diff --git a/src/controllers/api/pleroma.ts b/src/controllers/api/pleroma.ts new file mode 100644 index 0000000..992531e --- /dev/null +++ b/src/controllers/api/pleroma.ts @@ -0,0 +1,7 @@ +import { type AppController } from '@/app.ts'; + +const frontendConfigController: AppController = (c) => { + return c.json({}); +}; + +export { frontendConfigController };