feature: add trpc openapi (#1818)
This commit is contained in:
11
src/server/openai.ts
Normal file
11
src/server/openai.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
import { generateOpenApiDocument } from 'trpc-openapi';
|
||||
import { appRouter } from '~/server/api/routers/app';
|
||||
import { rootRouter } from '~/server/api/root';
|
||||
|
||||
export const openApiDocument = generateOpenApiDocument(rootRouter, {
|
||||
title: 'Homarr API',
|
||||
description: 'OpenAPI compliant REST API built of interfacing with Homarr',
|
||||
version: '1.0.0',
|
||||
baseUrl: 'http://localhost:3000/api',
|
||||
docsUrl: 'https://homarr.dev'
|
||||
});
|
||||
Reference in New Issue
Block a user