- default(_: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>, res: Response<any, Record<string, any>>, next: NextFunction): void | Response<any, Record<string, any>>
-
Parameters
-
_: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
-
res: Response<any, Record<string, any>>
-
next: NextFunction
Returns void | Response<any, Record<string, any>>
This middleware will check if the current user has admin role
Author
aayushchugh