mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-18 22:14:23 +01:00
Allow posting a status to Nostr
This commit is contained in:
@@ -5,6 +5,7 @@ import { appCredentialsController, createAppController } from './api/apps.ts';
|
||||
import { emptyArrayController } from './api/fallback.ts';
|
||||
import instanceController from './api/instance.ts';
|
||||
import { createTokenController } from './api/oauth.ts';
|
||||
import { createStatusController } from './api/statuses.ts';
|
||||
|
||||
const app = new Hono();
|
||||
|
||||
@@ -19,6 +20,8 @@ app.post('/oauth/token', createTokenController);
|
||||
|
||||
app.get('/api/v1/accounts/verify_credentials', credentialsController);
|
||||
|
||||
app.post('/api/v1/statuses', createStatusController);
|
||||
|
||||
// Not (yet) implemented.
|
||||
app.get('/api/v1/timelines/*', emptyArrayController);
|
||||
app.get('/api/v1/accounts/:id/statuses', emptyArrayController);
|
||||
|
||||
Reference in New Issue
Block a user