mirror of
https://github.com/documenso/documenso.git
synced 2025-11-22 20:51:33 +10:00
fix: refactor api routes
This commit is contained in:
7
packages/trpc/server/team-router/get-teams-route.ts
Normal file
7
packages/trpc/server/team-router/get-teams-route.ts
Normal file
@ -0,0 +1,7 @@
|
||||
import { getTeams } from '@documenso/lib/server-only/team/get-teams';
|
||||
|
||||
import { authenticatedProcedure } from '../trpc';
|
||||
|
||||
export const getTeamsRoute = authenticatedProcedure.query(async ({ ctx }) => {
|
||||
return await getTeams({ userId: ctx.user.id });
|
||||
});
|
||||
Reference in New Issue
Block a user