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