mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-30 14:39:29 +02:00
added axios client
This commit is contained in:
parent
e42ae3dac3
commit
c3b7d2e47c
7 changed files with 81 additions and 41 deletions
|
@ -7,8 +7,11 @@ export function notFoundMiddleware(
|
|||
res: Response,
|
||||
next: NextFunction,
|
||||
) {
|
||||
const message = `The requests url is not found - ${req.originalUrl}`;
|
||||
return next(createHttpError(HttpCode.NOT_FOUND, message));
|
||||
if (req.path.startsWith("/api")) {
|
||||
const message = `The requests url is not found - ${req.originalUrl}`;
|
||||
return next(createHttpError(HttpCode.NOT_FOUND, message));
|
||||
}
|
||||
return next();
|
||||
}
|
||||
|
||||
export default notFoundMiddleware;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue