Skip to content

Commit

Permalink
Merge pull request #7 from Aditya-Jyoti/master
Browse files Browse the repository at this point in the history
chore: Add security bearers
  • Loading branch information
Aditya-Jyoti authored Dec 25, 2024
2 parents d085c6b + 81a7f2a commit 951b224
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
Expand Up @@ -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({
Expand Down

0 comments on commit 951b224

Please sign in to comment.