Files
sign/packages/trpc/server/router.ts
Catalin Pit 3fbf6c5842 feat: add folder management to document structure
- Introduced a new "Folder" table to manage document organization.
- Added foreign key relationships between "Document" and "Folder".
- Updated the TRPC router to include folder-related endpoints.
2025-03-18 17:51:38 +02:00

31 lines
1.1 KiB
TypeScript

import { adminRouter } from './admin-router/router';
import { apiTokenRouter } from './api-token-router/router';
import { authRouter } from './auth-router/router';
import { documentRouter } from './document-router/router';
import { fieldRouter } from './field-router/router';
import { folderRouter } from './folder-router/router';
import { profileRouter } from './profile-router/router';
import { recipientRouter } from './recipient-router/router';
import { shareLinkRouter } from './share-link-router/router';
import { teamRouter } from './team-router/router';
import { templateRouter } from './template-router/router';
import { router } from './trpc';
import { webhookRouter } from './webhook-router/router';
export const appRouter = router({
auth: authRouter,
profile: profileRouter,
document: documentRouter,
field: fieldRouter,
folder: folderRouter,
recipient: recipientRouter,
admin: adminRouter,
shareLink: shareLinkRouter,
apiToken: apiTokenRouter,
team: teamRouter,
template: templateRouter,
webhook: webhookRouter,
});
export type AppRouter = typeof appRouter;