- Preparing search index...
- The search index is not available
ehi-server
- asyncRouteWrap(fn): ((req, res, next) => Promise<void>)
-
Parameters
-
fn: RequestHandler<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
Returns ((req, res, next) => Promise<void>)
-
- (req, res, next): Promise<void>
-
Parameters
-
req: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
-
res: Response<any, Record<string, any>>
-
next: NextFunction
Returns Promise<void>
Creates and returns a route-wrapper function that allows for using an async route handlers without try/catch.