feat: implement openapi (#482)
This commit is contained in:
1 parent
a3520e4dfd
commit
f0cd45c813
17 files changed
+14986
-637
No files matched your search
@@ -0,0 +1,11 @@
|
||||
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",
|
||||
});
|
||||
Reference in new issue
Block a user