X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fservers.ts;h=ebfa03e6ca02ccc0747d93d4dfe0988140299be9;hb=4d526901349b35bfac9811acc45854c65639cee3;hp=9aa56bc93399478bd3894d899eea0f367af11cbb;hpb=76148b27f7501bac061992136852be4303370c8d;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/servers.ts b/server/middlewares/servers.ts index 9aa56bc93..ebfa03e6c 100644 --- a/server/middlewares/servers.ts +++ b/server/middlewares/servers.ts @@ -1,6 +1,6 @@ -import * as express from 'express' +import express from 'express' +import { HttpStatusCode } from '../../shared/models/http/http-error-codes' import { getHostWithPort } from '../helpers/express-utils' -import { HttpStatusCode } from '../../shared/core-utils/miscs/http-error-codes' function setBodyHostsPort (req: express.Request, res: express.Response, next: express.NextFunction) { if (!req.body.hosts) return next()