diff options
Diffstat (limited to 'server/controllers/webfinger.ts')
-rw-r--r-- | server/controllers/webfinger.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/webfinger.ts b/server/controllers/webfinger.ts index cc28a8909..1cea513a1 100644 --- a/server/controllers/webfinger.ts +++ b/server/controllers/webfinger.ts | |||
@@ -1,11 +1,12 @@ | |||
1 | import * as express from 'express' | 1 | import * as express from 'express' |
2 | import { asyncMiddleware } from '../middlewares/async' | ||
2 | import { webfingerValidator } from '../middlewares/validators/webfinger' | 3 | import { webfingerValidator } from '../middlewares/validators/webfinger' |
3 | import { AccountInstance } from '../models/account/account-interface' | 4 | import { AccountInstance } from '../models/account/account-interface' |
4 | 5 | ||
5 | const webfingerRouter = express.Router() | 6 | const webfingerRouter = express.Router() |
6 | 7 | ||
7 | webfingerRouter.get('/.well-known/webfinger', | 8 | webfingerRouter.get('/.well-known/webfinger', |
8 | webfingerValidator, | 9 | asyncMiddleware(webfingerValidator), |
9 | webfingerController | 10 | webfingerController |
10 | ) | 11 | ) |
11 | 12 | ||