import { endpoint } from "https://deno.land/x/cav@0.2.0-alpha.7/endpoint.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 | null
Ctx extends EndpointSchema["ctx"]
Param extends EndpointSchema["param"]
Query extends EndpointSchema["query"]
Body extends EndpointSchema["body"]