initial commit
This commit is contained in:
commit
33e75c056f
77 changed files with 4329 additions and 0 deletions
14
packages/api/src/routers/index.ts
Normal file
14
packages/api/src/routers/index.ts
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
import { protectedProcedure, publicProcedure, router } from "../index";
|
||||
|
||||
export const appRouter = router({
|
||||
healthCheck: publicProcedure.query(() => {
|
||||
return "OK";
|
||||
}),
|
||||
privateData: protectedProcedure.query(({ ctx }) => {
|
||||
return {
|
||||
message: "This is private",
|
||||
user: ctx.session.user,
|
||||
};
|
||||
}),
|
||||
});
|
||||
export type AppRouter = typeof appRouter;
|
||||
Loading…
Add table
Add a link
Reference in a new issue