Add boilerplate frontend_configurations controller
This commit is contained in:
parent
39b75d7f95
commit
009747105d
|
@ -13,6 +13,7 @@ import { emptyArrayController, emptyObjectController } from './controllers/api/f
|
||||||
import { homeController } from './controllers/api/timelines.ts';
|
import { homeController } from './controllers/api/timelines.ts';
|
||||||
import instanceController from './controllers/api/instance.ts';
|
import instanceController from './controllers/api/instance.ts';
|
||||||
import { createTokenController, oauthAuthorizeController, oauthController } from './controllers/api/oauth.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 { preferencesController } from './controllers/api/preferences.ts';
|
||||||
import { searchController } from './controllers/api/search.ts';
|
import { searchController } from './controllers/api/search.ts';
|
||||||
import {
|
import {
|
||||||
|
@ -77,6 +78,8 @@ app.get('/api/v1/preferences', preferencesController);
|
||||||
app.get('/api/v1/search', searchController);
|
app.get('/api/v1/search', searchController);
|
||||||
app.get('/api/v2/search', searchController);
|
app.get('/api/v2/search', searchController);
|
||||||
|
|
||||||
|
app.get('/api/pleroma/frontend_configurations', frontendConfigController);
|
||||||
|
|
||||||
// Not (yet) implemented.
|
// Not (yet) implemented.
|
||||||
app.get('/api/v1/notifications', emptyArrayController);
|
app.get('/api/v1/notifications', emptyArrayController);
|
||||||
app.get('/api/v1/bookmarks', emptyArrayController);
|
app.get('/api/v1/bookmarks', emptyArrayController);
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
import { type AppController } from '@/app.ts';
|
||||||
|
|
||||||
|
const frontendConfigController: AppController = (c) => {
|
||||||
|
return c.json({});
|
||||||
|
};
|
||||||
|
|
||||||
|
export { frontendConfigController };
|
Loading…
Reference in New Issue