• This middleware will check if the current user has admin role

    Author

    aayushchugh

    Parameters

    • _: Request<ParamsDictionary, any, any, ParsedQs, Record<string, any>>
    • res: Response<any, Record<string, any>>
    • next: NextFunction

    Returns void | Response<any, Record<string, any>>

Generated using TypeDoc