You can configure express middleware or add custom middleware by adding configuration files to the middlewares folder.
The middlewares configuration file is called after the environment files loaded.
The middlewares will be used on all requests.
This middleware will be added only when the env is
Async middlewares also supported.
if error is thrown
next(new HttpError(e)) is called