Add nostr.json (NIP-05)

This commit is contained in:
Alex Gleason
2023-07-09 12:55:37 -05:00
parent 7808565d71
commit 0e15e174c5
3 changed files with 40 additions and 0 deletions

View File

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