]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/middlewares/servers.ts
(plugins) adding signup scope and init hook, modifying ensureUserRegistrationAllowed...
[github/Chocobozzz/PeerTube.git] / server / middlewares / servers.ts
index e16bc4a86206fe20e1b5e3cd91d135b9718dd5e1..9c0af443a5fa060c35e27af98bba9dd06deab9cd 100644 (file)
@@ -1,6 +1,5 @@
 import * as express from 'express'
-import 'express-validator'
-import { getHostWithPort } from '../helpers'
+import { getHostWithPort } from '../helpers/express-utils'
 
 function setBodyHostsPort (req: express.Request, res: express.Response, next: express.NextFunction) {
   if (!req.body.hosts) return next()