mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-31 08:04:54 +02:00
openapi test
This commit is contained in:
parent
0e65f8c921
commit
a76e3e00f7
6 changed files with 76 additions and 9 deletions
17
server/openApi.ts
Normal file
17
server/openApi.ts
Normal 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"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue