mirror of
https://github.com/ajnart/homarr.git
synced 2026-01-30 19:29:17 +01:00
20 lines
524 B
TypeScript
20 lines
524 B
TypeScript
import { generateOpenApiDocument } from "trpc-to-openapi";
|
|
|
|
import { appRouter } from "./root";
|
|
|
|
export const openApiDocument = (base: string) =>
|
|
generateOpenApiDocument(appRouter, {
|
|
title: "Homarr API documentation",
|
|
version: "1.0.0",
|
|
baseUrl: base,
|
|
docsUrl: "https://homarr.dev",
|
|
securitySchemes: {
|
|
apikey: {
|
|
type: "apiKey",
|
|
name: "ApiKey",
|
|
description: "API key which can be obtained in the Homarr administration dashboard",
|
|
in: "header",
|
|
},
|
|
},
|
|
});
|