X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fmiddlewares%2Ferror.ts;h=6c52ce7bd98f7fa98e7d551e07249991d6248002;hb=400043b1be38cdd7bc39462fa6a545eea0bea03e;hp=e3eb1c8f54b8bc94d5943e692d9f9cfb503f980d;hpb=e030bfb59dd5ee65f20a64686ec9b22ca39f70ae;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/middlewares/error.ts b/server/middlewares/error.ts index e3eb1c8f5..6c52ce7bd 100644 --- a/server/middlewares/error.ts +++ b/server/middlewares/error.ts @@ -1,6 +1,6 @@ -import * as express from 'express' +import express from 'express' import { ProblemDocument, ProblemDocumentExtension } from 'http-problem-details' -import { HttpStatusCode } from '@shared/core-utils' +import { HttpStatusCode } from '@shared/models' function apiFailMiddleware (req: express.Request, res: express.Response, next: express.NextFunction) { res.fail = options => {