aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers/webfinger.ts
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-27 17:30:46 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-27 19:43:01 +0100
commita2431b7dcbc72c05101dcdbe631ff84a823aeb51 (patch)
tree09278a822905622a70ff976a75e09d99bc45639a /server/controllers/webfinger.ts
parentfcaf1e0aa84213a1b1f1b1a44a3276eae35ebe70 (diff)
downloadPeerTube-a2431b7dcbc72c05101dcdbe631ff84a823aeb51.tar.gz
PeerTube-a2431b7dcbc72c05101dcdbe631ff84a823aeb51.tar.zst
PeerTube-a2431b7dcbc72c05101dcdbe631ff84a823aeb51.zip
Refractor validators
Diffstat (limited to 'server/controllers/webfinger.ts')
-rw-r--r--server/controllers/webfinger.ts3
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 @@
1import * as express from 'express' 1import * as express from 'express'
2import { asyncMiddleware } from '../middlewares/async'
2import { webfingerValidator } from '../middlewares/validators/webfinger' 3import { webfingerValidator } from '../middlewares/validators/webfinger'
3import { AccountInstance } from '../models/account/account-interface' 4import { AccountInstance } from '../models/account/account-interface'
4 5
5const webfingerRouter = express.Router() 6const webfingerRouter = express.Router()
6 7
7webfingerRouter.get('/.well-known/webfinger', 8webfingerRouter.get('/.well-known/webfinger',
8 webfingerValidator, 9 asyncMiddleware(webfingerValidator),
9 webfingerController 10 webfingerController
10) 11)
11 12