mirror of
https://github.com/alexmickelson/canvasManagement.git
synced 2026-03-26 15:48:32 -06:00
starting to gut
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { createContext } from "../context";
|
||||
import { createTrpcContext } from "../context";
|
||||
import publicProcedure from "../procedures/public";
|
||||
import { createCallerFactory, mergeRouters, router } from "../trpc";
|
||||
import { createCallerFactory, router } from "../trpc";
|
||||
import { assignmentRouter } from "./assignmentRouter";
|
||||
|
||||
export const helloRouter = router({
|
||||
@@ -11,16 +11,16 @@ export const helloRouter = router({
|
||||
}),
|
||||
});
|
||||
|
||||
export const appRouter = router({
|
||||
export const trpcAppRouter = router({
|
||||
hello: helloRouter,
|
||||
assignment: assignmentRouter,
|
||||
});
|
||||
|
||||
export const createCaller = createCallerFactory(appRouter);
|
||||
export const createCaller = createCallerFactory(trpcAppRouter);
|
||||
|
||||
export const createAsyncCaller = async () => {
|
||||
const context = await createContext();
|
||||
const context = await createTrpcContext();
|
||||
return createCaller(context);
|
||||
};
|
||||
|
||||
export type AppRouter = typeof appRouter;
|
||||
export type AppRouter = typeof trpcAppRouter;
|
||||
|
||||
Reference in New Issue
Block a user