import { endpoint } from "https://deno.land/x/cav@0.2.0-alpha.5/mod.ts";
Constructs a new Endpoint request handler. The schema properties will be assigned to the returned endpoint function, so that they can be reused on other endpoint schemas.
Type Parameters
Schema extends EndpointSchema
Param extends EndpointSchema["param"]
Ctx extends EndpointSchema["ctx"]
Query extends EndpointSchema["query"]
Body extends EndpointSchema["body"]