X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Fservers.ts;h=ebfa03e6ca02ccc0747d93d4dfe0988140299be9;hb=7177b46ca1b35aa9d7ed39a06c1dcf41a4fc6180;hp=9aa56bc93399478bd3894d899eea0f367af11cbb;hpb=cf21b2cbef61929177b9c09b5e017c3b7eb8535d;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()