blob: 394e95e790ce046704ae104f015251931bdd7e0d (
plain) (
blame)
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
|
import { router } from "../index";
import { adminAppRouter } from "./admin";
import { apiKeysAppRouter } from "./apiKeys";
import { assetsAppRouter } from "./assets";
import { bookmarksAppRouter } from "./bookmarks";
import { feedsAppRouter } from "./feeds";
import { highlightsAppRouter } from "./highlights";
import { listsAppRouter } from "./lists";
import { promptsAppRouter } from "./prompts";
import { rulesAppRouter } from "./rules";
import { tagsAppRouter } from "./tags";
import { usersAppRouter } from "./users";
import { webhooksAppRouter } from "./webhooks";
export const appRouter = router({
bookmarks: bookmarksAppRouter,
apiKeys: apiKeysAppRouter,
users: usersAppRouter,
lists: listsAppRouter,
tags: tagsAppRouter,
prompts: promptsAppRouter,
admin: adminAppRouter,
feeds: feedsAppRouter,
highlights: highlightsAppRouter,
webhooks: webhooksAppRouter,
assets: assetsAppRouter,
rules: rulesAppRouter,
});
// export type definition of API
export type AppRouter = typeof appRouter;
|