import { endpoint } from "https://deno.land/x/cav@0.0.23/mod.ts";
Constructs a new Endpoint handler using the provided schema. The schema properties are also available on the returned Endpoint function.
Parameters
optional
schema: EndpointSchema<GroupsOutput, Ctx, QueryInput, QueryOutput, MessageInput, MessageOutput> & Schema | nulloptional
resolve: (x: ResolveArg<GroupsOutput, Ctx, QueryOutput, MessageOutput>) => Resp