import { OpenboxRouter } from "https://deno.land/x/openbox@1.2.10/mod.ts";
Constructors
new
OpenboxRouter(unnamed 0: { endpoints: OpenboxEndpoints<Routes>; defaultErrorHandler?: OpenboxServerErrorHandler; notFoundHandler?: OpenboxServerNotFoundHandler; })Properties
readonly
endpoints: OpenboxEndpoints<Routes>Methods
addRoute()
path: string,
method: OpenboxRouteMethod,
mediaType: string,
handler: OpenboxServerRouteHandler,
errorHandler?: OpenboxServerErrorHandler,
handle(request: Request, connInfo: Deno.ServeHandlerInfo): Promise<Response>