mirror of
https://github.com/aljazceru/ditto.git
synced 2025-12-18 22:14:23 +01:00
Add nostr.json (NIP-05)
This commit is contained in:
@@ -27,6 +27,7 @@ import {
|
||||
} from './controllers/api/statuses.ts';
|
||||
import { streamingController } from './controllers/api/streaming.ts';
|
||||
import { indexController } from './controllers/site.ts';
|
||||
import { nostrController } from './controllers/well-known/nostr.ts';
|
||||
import { auth19, requireAuth } from './middleware/auth19.ts';
|
||||
import { auth98 } from './middleware/auth98.ts';
|
||||
|
||||
@@ -56,6 +57,8 @@ app.get('/api/v1/streaming/', streamingController);
|
||||
|
||||
app.use('*', cors({ origin: '*', exposeHeaders: ['link'] }), auth19, auth98());
|
||||
|
||||
app.get('/.well-known/nostr.json', nostrController);
|
||||
|
||||
app.get('/api/v1/instance', instanceController);
|
||||
|
||||
app.get('/api/v1/apps/verify_credentials', appCredentialsController);
|
||||
|
||||
Reference in New Issue
Block a user