diff --git a/src/middlewares/cors.ts b/src/middlewares/cors.ts index a636e61..e7d3628 100644 --- a/src/middlewares/cors.ts +++ b/src/middlewares/cors.ts @@ -1,4 +1,4 @@ -import { Request, Response, NextFunction } from 'express'; +import type { Request, Response, NextFunction } from 'express'; import config from '../config'; export default function cors(req: Request, res: Response, next: NextFunction): void { diff --git a/src/middlewares/errorHandler.ts b/src/middlewares/errorHandler.ts index b5d9f34..63509db 100644 --- a/src/middlewares/errorHandler.ts +++ b/src/middlewares/errorHandler.ts @@ -1,4 +1,4 @@ -import { Request, Response, NextFunction } from 'express'; +import type { Request, Response, NextFunction } from 'express'; import APIError from '../errors/APIError'; import logger from '../logger'; diff --git a/src/middlewares/logRequest.ts b/src/middlewares/logRequest.ts index 5b60098..a7c8759 100644 --- a/src/middlewares/logRequest.ts +++ b/src/middlewares/logRequest.ts @@ -1,4 +1,4 @@ -import { Request, Response, NextFunction } from 'express'; +import type { Request, Response, NextFunction } from 'express'; import logger from '../logger'; export default function logRequest(req: Request, res: Response, next: NextFunction): void { diff --git a/src/middlewares/optionalAuth.ts b/src/middlewares/optionalAuth.ts index f63ecf8..dc4fa6b 100644 --- a/src/middlewares/optionalAuth.ts +++ b/src/middlewares/optionalAuth.ts @@ -1,4 +1,4 @@ -import { Request, Response, NextFunction } from 'express'; +import type { Request, Response, NextFunction } from 'express'; import services from '../services'; export default async function auth(req: Request, res: Response, next: NextFunction): Promise { diff --git a/src/middlewares/requireAdmin.ts b/src/middlewares/requireAdmin.ts index 5066c8a..ecee9fb 100644 --- a/src/middlewares/requireAdmin.ts +++ b/src/middlewares/requireAdmin.ts @@ -1,4 +1,4 @@ -import { Request, Response, NextFunction } from 'express'; +import type { Request, Response, NextFunction } from 'express'; import tokenService from '../services/token'; export default async function requireAdmin(req: Request, res: Response, next: NextFunction): Promise { diff --git a/src/middlewares/requireAuth.ts b/src/middlewares/requireAuth.ts index 4b8aa7a..52f6d18 100644 --- a/src/middlewares/requireAuth.ts +++ b/src/middlewares/requireAuth.ts @@ -1,4 +1,4 @@ -import { Request, Response, NextFunction } from 'express'; +import type { Request, Response, NextFunction } from 'express'; import services from '../services'; export default async function requireAuth(req: Request, res: Response, next: NextFunction): Promise { diff --git a/src/middlewares/trace.ts b/src/middlewares/trace.ts index fd33615..cc577c4 100644 --- a/src/middlewares/trace.ts +++ b/src/middlewares/trace.ts @@ -1,4 +1,4 @@ -import { Request, Response, NextFunction } from 'express'; +import type { Request, Response, NextFunction } from 'express'; import { v4 as uuidv4 } from 'uuid'; import namespace from '../services/cls';