summary refs log tree commit diff
path: root/src/api/middlewares
diff options
context:
space:
mode:
Diffstat (limited to 'src/api/middlewares')
-rw-r--r--src/api/middlewares/Authentication.ts2
-rw-r--r--src/api/middlewares/BodyParser.ts2
-rw-r--r--src/api/middlewares/ErrorHandler.ts2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/api/middlewares/Authentication.ts b/src/api/middlewares/Authentication.ts

index a35c5fbc..f6741342 100644 --- a/src/api/middlewares/Authentication.ts +++ b/src/api/middlewares/Authentication.ts
@@ -18,7 +18,7 @@ import { checkToken, Rights, Session, User, UserTokenData } from "@spacebar/util"; import { NextFunction, Request, Response } from "express"; -import { HTTPError } from "lambert-server"; +import { HTTPError } from "lambert-server/HTTPError"; export const NO_AUTHORIZATION_ROUTES = [ // Authentication routes diff --git a/src/api/middlewares/BodyParser.ts b/src/api/middlewares/BodyParser.ts
index a579abb3..7de916b6 100644 --- a/src/api/middlewares/BodyParser.ts +++ b/src/api/middlewares/BodyParser.ts
@@ -18,7 +18,7 @@ import bodyParser, { OptionsJson } from "body-parser"; import { NextFunction, Request, Response } from "express"; -import { HTTPError } from "lambert-server"; +import { HTTPError } from "lambert-server/HTTPError"; const errorMessages: { [key: string]: [string, number] } = { "entity.too.large": ["Request body too large", 413], diff --git a/src/api/middlewares/ErrorHandler.ts b/src/api/middlewares/ErrorHandler.ts
index 2d17f1a2..052f2a3a 100644 --- a/src/api/middlewares/ErrorHandler.ts +++ b/src/api/middlewares/ErrorHandler.ts
@@ -17,7 +17,7 @@ */ import { NextFunction, Request, Response } from "express"; -import { HTTPError } from "lambert-server"; +import { HTTPError } from "lambert-server/HTTPError"; import { ApiError, FieldError } from "@spacebar/util"; const EntityNotFoundErrorRegex = /"(\w+)"/;