organized routes and routes and added rate limiter

This commit is contained in:
Milo Schwartz 2024-10-02 00:04:40 -04:00
parent 3bbbc2365c
commit 9a2e0dee03
45 changed files with 241 additions and 181 deletions

View file

@ -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,