mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-13 03:28:19 +00:00
organized routes and routes and added rate limiter
This commit is contained in:
@@ -10,7 +10,6 @@ export const errorHandlerMiddleware: ErrorRequestHandler = (
|
||||
res: Response<ErrorResponse>,
|
||||
next: NextFunction,
|
||||
) => {
|
||||
logger.error(error);
|
||||
const statusCode = error.statusCode || HttpCode.INTERNAL_SERVER_ERROR;
|
||||
res?.status(statusCode).send({
|
||||
data: null,
|
||||
|
||||
Reference in New Issue
Block a user