mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-29 22:19:31 +02:00
openapi test
This commit is contained in:
parent
e827ba185e
commit
cf3093fdb0
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