import { Router } from "https://deno.land/x/http_wrapper@v0.5.0/Router.ts";
Properties
private
_delete: EndpointMapprivate
_get: EndpointMapprivate
_head: EndpointMapprivate
_options: EndpointMapprivate
_patch: EndpointMapprivate
_post: EndpointMapprivate
_put: EndpointMapreadonly
routes: EndpointGetter used to register all endpoints in this router with the Server.
Methods
private
process()delete(route: string, func: (req: ServerRequest, vars: RouteVariables) => void)
Register a DELETE endpoint
get(route: string, func: (req: ServerRequest, vars: RouteVariables) => void)
Register a GET endpoint
head(route: string, func: (req: ServerRequest, vars: RouteVariables) => void)
Register a HEAD endpoint
options(route: string, func: (req: ServerRequest, vars: RouteVariables) => void)
Register an OPTIONS endpoint
patch(route: string, func: (req: ServerRequest, vars: RouteVariables) => void)
Register a PATCH endpoint
post(route: string, func: (req: ServerRequest, vars: RouteVariables) => void)
Register a POST endpoint
put(route: string, func: (req: ServerRequest, vars: RouteVariables) => void)
Register a PUT endpoint