Skip to content

Commit

Permalink
fix: Add servers to OpenAPI response (#717)
Browse files Browse the repository at this point in the history
  • Loading branch information
arcoraven authored Oct 9, 2024
1 parent 3982b7e commit fcc532c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/server/middleware/open-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ export const withOpenApi = async (server: FastifyInstance) => {
url: "http://www.apache.org/licenses/LICENSE-2.0.html",
},
},
servers: [
{
// This will appear in API documentation.
url: "https://YOUR_ENGINE_URL",
description: "Provide your Engine URL",
},
],
components: {
securitySchemes: {
bearerAuth: {
Expand Down

0 comments on commit fcc532c

Please sign in to comment.