mirror of
https://github.com/documenso/documenso.git
synced 2025-11-24 05:32:12 +10:00
feat: doc comments
This commit is contained in:
9
packages/trpc/server/comment-router/router.ts
Normal file
9
packages/trpc/server/comment-router/router.ts
Normal file
@ -0,0 +1,9 @@
|
||||
import { findComments } from '@documenso/lib/server-only/comment/find-comments';
|
||||
|
||||
import { procedure, router } from '../trpc';
|
||||
|
||||
export const commentRouter = router({
|
||||
getComments: procedure.query(async () => {
|
||||
return await findComments();
|
||||
}),
|
||||
});
|
||||
0
packages/trpc/server/comment-router/schema.ts
Normal file
0
packages/trpc/server/comment-router/schema.ts
Normal file
@ -1,5 +1,6 @@
|
||||
import { adminRouter } from './admin-router/router';
|
||||
import { authRouter } from './auth-router/router';
|
||||
import { commentRouter } from './comment-router/router';
|
||||
import { documentRouter } from './document-router/router';
|
||||
import { fieldRouter } from './field-router/router';
|
||||
import { profileRouter } from './profile-router/router';
|
||||
@ -21,6 +22,7 @@ export const appRouter = router({
|
||||
singleplayer: singleplayerRouter,
|
||||
twoFactorAuthentication: twoFactorAuthenticationRouter,
|
||||
template: templateRouter,
|
||||
comment: commentRouter,
|
||||
});
|
||||
|
||||
export type AppRouter = typeof appRouter;
|
||||
|
||||
Reference in New Issue
Block a user