-
-
Notifications
You must be signed in to change notification settings - Fork 169
Expand file tree
/
Copy pathindex.ts
More file actions
49 lines (45 loc) · 1.57 KB
/
Copy pathindex.ts
File metadata and controls
49 lines (45 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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";
import { feedRouter } from "./feed";
import { sponsorRouter } from "./sponsor";
import { volunteerRouter } from "./volunteer";
import { speakerRouter } from "./speaker";
import { jobRouter } from "./job";
import { engagementRouter } from "./engagement";
import { followRouter } from "./follow";
import { publicationRouter } from "./publication";
import { searchRouter } from "./search";
// Legacy routers (kept for backward compatibility during migration)
import { discussionRouter } from "./discussion";
import { contentRouter } from "./content";
export const appRouter = createTRPCRouter({
// Primary routers (using new schema)
post: postRouter,
comment: commentRouter,
profile: profileRouter,
notification: notificationRouter,
admin: adminRouter,
report: reportRouter,
tag: tagRouter,
feed: feedRouter,
sponsor: sponsorRouter,
volunteer: volunteerRouter,
speaker: speakerRouter,
job: jobRouter,
engagement: engagementRouter,
follow: followRouter,
publication: publicationRouter,
search: searchRouter,
// Legacy routers (for backward compatibility)
// TODO: Remove once all frontend is migrated
discussion: discussionRouter,
content: contentRouter,
});
// export type definition of API
export type AppRouter = typeof appRouter;