import { default } from "https://deno.land/x/pogo@v0.6.0/lib/router.ts";
A router represents a collection of routes and determines which route will handle a given HTTP request.
Use pogo.router()
to create a router instance.
Constructors
Methods
add(): this
add(): this
route: RoutesListHasMethodAndPath,
options: RouteOptionsHasHandler | RouteHandler,
handler?: RouteHandler,
add(): this
add(): this
add(): this
add(): this
add(): this
add(): this
add(): this
all(): this
all(): this
all(): this
all(): this
all(): this
all(): this
delete(): this
delete(): this
delete(): this
delete(): this
delete(): this
delete(): this
get(): this
get(): this
get(): this
get(): this
get(): this
get(): this
lookup(): MatchedRoute | undefined
method: string,
path: string,
host?: string,
patch(): this
patch(): this
patch(): this
patch(): this
patch(): this
patch(): this
post(): this
post(): this
post(): this
post(): this
post(): this
post(): this
put(): this
put(): this
put(): this
put(): this
put(): this
put(): this