Add boilerplate frontend_configurations controller

This commit is contained in:
Alex Gleason 2023-06-10 23:10:27 -05:00
parent 39b75d7f95
commit 009747105d
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 10 additions and 0 deletions

View File

@ -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);

View File

@ -0,0 +1,7 @@
import { type AppController } from '@/app.ts';
const frontendConfigController: AppController = (c) => {
return c.json({});
};
export { frontendConfigController };