Type Alias ExtensionRoute
ExtensionRoute: { handler: ( req: Request, params: Record<string, string>, ctx: CommandContext, ) => Promise<Response>; method: "GET" | "POST" | "PUT" | "DELETE"; path: string;} Type declaration
handler: (
req: Request,
params: Record<string, string>,
ctx: CommandContext,
) => Promise<Response>
method: "GET" | "POST" | "PUT" | "DELETE"
path: string
path relative to basePath, ":param" segments supported