mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
feat: add trpc openapi (#1535)
This commit is contained in:
12
packages/trpc/server/open-api.ts
Normal file
12
packages/trpc/server/open-api.ts
Normal file
@ -0,0 +1,12 @@
|
||||
import { generateOpenApiDocument } from 'trpc-openapi';
|
||||
|
||||
import { NEXT_PUBLIC_WEBAPP_URL } from '@documenso/lib/constants/app';
|
||||
|
||||
import { appRouter } from './router';
|
||||
|
||||
export const openApiDocument = generateOpenApiDocument(appRouter, {
|
||||
title: 'Do not use.',
|
||||
version: '0.0.0',
|
||||
baseUrl: `${NEXT_PUBLIC_WEBAPP_URL()}/api/beta`,
|
||||
// docsUrl: '', // Todo
|
||||
});
|
||||
Reference in New Issue
Block a user