mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-20 15:04:20 +01:00
Add boilerplate frontend_configurations controller
This commit is contained in:
@@ -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);
|
||||
|
||||
7
src/controllers/api/pleroma.ts
Normal file
7
src/controllers/api/pleroma.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { type AppController } from '@/app.ts';
|
||||
|
||||
const frontendConfigController: AppController = (c) => {
|
||||
return c.json({});
|
||||
};
|
||||
|
||||
export { frontendConfigController };
|
||||
Reference in New Issue
Block a user