mirror of
https://github.com/ajnart/homarr.git
synced 2026-02-27 08:50:56 +01:00
12 lines
303 B
TypeScript
12 lines
303 B
TypeScript
import { generateOpenApiDocument } from "trpc-swagger";
|
|
|
|
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",
|
|
});
|