openapi test

This commit is contained in:
miloschwartz 2025-04-06 16:06:50 -04:00
parent 0e65f8c921
commit a76e3e00f7
No known key found for this signature in database
6 changed files with 76 additions and 9 deletions

17
server/openApi.ts Normal file
View file

@ -0,0 +1,17 @@
import { OpenAPIRegistry } from "@asteasolutions/zod-to-openapi";
export const registry = new OpenAPIRegistry();
export const bearerAuth = registry.registerComponent(
"securitySchemes",
"Bearer Auth",
{
type: "http",
scheme: "bearer"
}
);
export enum OpenAPITags {
Site = "Site",
Org = "Organization"
}