mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Refractor validators
This commit is contained in:
parent
fcaf1e0aa8
commit
a2431b7dcb
33 changed files with 478 additions and 643 deletions
|
@ -1,11 +1,12 @@
|
|||
import * as express from 'express'
|
||||
import { asyncMiddleware } from '../middlewares/async'
|
||||
import { webfingerValidator } from '../middlewares/validators/webfinger'
|
||||
import { AccountInstance } from '../models/account/account-interface'
|
||||
|
||||
const webfingerRouter = express.Router()
|
||||
|
||||
webfingerRouter.get('/.well-known/webfinger',
|
||||
webfingerValidator,
|
||||
asyncMiddleware(webfingerValidator),
|
||||
webfingerController
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue