interface Route {
    handler: AdapterHandler;
    method: HttpMethod;
    middleware?: ((req, res, next) => void)[];
    oauth?: {
        provider: SupportedOAuthProvider;
        routeType: "redirect" | "callback";
    };
    path: string;
    validators: Predicate[];
}

Properties

handler

method: HttpMethod

http method

middleware?: ((req, res, next) => void)[]

middleware

Type declaration

    • (req, res, next): void
    • Parameters

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

      Returns void

oauth?: {
    provider: SupportedOAuthProvider;
    routeType: "redirect" | "callback";
}

oauth

Type declaration

path: string

path

validators: Predicate[]

validators

Generated using TypeDoc