forked from Mike/freno-dev
removed excess comments
This commit is contained in:
@@ -4,16 +4,11 @@ import { appRouter } from "~/server/api/root";
|
||||
import { createTRPCContext } from "~/server/api/utils";
|
||||
|
||||
const handler = (event: APIEvent) => {
|
||||
// adapts tRPC to fetch API style requests
|
||||
return fetchRequestHandler({
|
||||
// the endpoint handling the requests
|
||||
endpoint: "/api/trpc",
|
||||
// the request object
|
||||
req: event.request,
|
||||
// the router for handling the requests
|
||||
router: appRouter,
|
||||
// any arbitrary data that should be available to all actions
|
||||
createContext: () => createTRPCContext(event),
|
||||
createContext: () => createTRPCContext(event)
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user