-
-
Notifications
You must be signed in to change notification settings - Fork 168
Expand file tree
/
Copy pathindex.ts
More file actions
22 lines (19 loc) · 632 Bytes
/
index.ts
File metadata and controls
22 lines (19 loc) · 632 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import { createTRPCRouter } from "../trpc";
import { postRouter } from "./post";
import { profileRouter } from "./profile";
import { commentRouter } from "./comment";
import { notificationRouter } from "./notification";
import { adminRouter } from "./admin";
import { reportRouter } from "./report";
import { tagRouter } from "./tag";
export const appRouter = createTRPCRouter({
post: postRouter,
profile: profileRouter,
comment: commentRouter,
notification: notificationRouter,
admin: adminRouter,
report: reportRouter,
tag: tagRouter
});
// export type definition of API
export type AppRouter = typeof appRouter;