mirror of
https://github.com/documenso/documenso.git
synced 2025-11-22 04:31:39 +10:00
21 lines
548 B
TypeScript
21 lines
548 B
TypeScript
import { z } from 'zod';
|
|
|
|
import { getTeamInvitations } from '@documenso/lib/server-only/team/get-team-invitations';
|
|
|
|
import { authenticatedProcedure } from '../trpc';
|
|
|
|
export const getTeamInvitationsRoute = authenticatedProcedure
|
|
// .meta({
|
|
// openapi: {
|
|
// method: 'GET',
|
|
// path: '/team/invite',
|
|
// summary: 'Get team invitations',
|
|
// description: '',
|
|
// tags: ['Teams'],
|
|
// },
|
|
// })
|
|
.input(z.void())
|
|
.query(async ({ ctx }) => {
|
|
return await getTeamInvitations({ email: ctx.user.email });
|
|
});
|