Skip to content

Commit 019d9e0

Browse files
committed
feat(api): add hello router
1 parent 3a8acb1 commit 019d9e0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/api/src/root.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
import { helloRouter } from './router/hello';
12
import { createTRPCRouter } from './trpc';
23

3-
export const appRouter = createTRPCRouter({});
4+
export const appRouter = createTRPCRouter({
5+
hello: helloRouter,
6+
});
47

58
// export type definition of API
69
export type AppRouter = typeof appRouter;

0 commit comments

Comments
 (0)