import { routerContext } from "https://deno.land/x/cav@0.2.0-alpha.5/router.ts";
Hook for getting routing metadata from a Request. If there isn't already a
RouterContext associated with the Request, a new one will be generated. The
same RouterContext object is returned on every subsequent call to
routerContext()
with this Request.
Use this to get information about how the Request has been routed so far, if at all. Routers read and modify this context internally and Endpoints read from it when determining whether to respond to the Request or not (404).
Parameters
request: Request