Skip to content

Commit

Permalink
chore: Add security bearers
Browse files Browse the repository at this point in the history
  • Loading branch information
Aditya-Jyoti committed Dec 25, 2024
1 parent d085c6b commit 81a7f2a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -23,6 +23,12 @@ app.doc("/openapi", {
},
});

app.openAPIRegistry.registerComponent("securitySchemes", "Bearer", {
type: "http",
scheme: "bearer",
bearerFormat: "JWT",
});

app.get("/docs", swaggerUI({ url: "/openapi" }));

serve({

0 comments on commit 81a7f2a

Please sign in to comment.