trpc stuff

This commit is contained in:
2024-11-08 11:41:20 -07:00
parent 9503b208d2
commit 95d758210c
13 changed files with 213 additions and 73 deletions

View File

@@ -1,6 +1,7 @@
import { createContext } from "../context";
import publicProcedure from "../procedures/public";
import { createCallerFactory, mergeRouters, router } from "../trpc";
import { assignmentRouter } from "./assignmentRouter";
export const helloRouter = router({
sayHello: publicProcedure.query(() => {
@@ -10,8 +11,10 @@ export const helloRouter = router({
}),
});
export const appRouter = mergeRouters(helloRouter);
export const appRouter = router({
hello: helloRouter,
assignment: assignmentRouter,
});
export const createCaller = createCallerFactory(appRouter);