Skip to content

Commit

Permalink
refactor(swagger): update swagger settings
Browse files Browse the repository at this point in the history
Refs #94
  • Loading branch information
samuelncaetano committed Feb 13, 2025
1 parent 4473d1e commit 8771cd7
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion backend/src/main/config/swaggerConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ const options = {
url: "https://your-app-name.onrender.com",
},
],
tags: [
{ name: "Users", description: "User management" },
{ name: "Transactions", description: "Transaction management" },
],
components: {
securitySchemes: {
bearerAuth: {
Expand All @@ -33,7 +37,10 @@ const options = {
},
],
},
apis: ["./src/**/*.ts"], // Caminho para os arquivos que contêm as anotações JSDoc
apis: [
"./src/main/routes/user/userRoutes.ts",
"./src/main/routes/transaction/transactionRoutes.ts",
],
};

const swaggerSpec = swaggerJSDoc(options);
Expand Down

0 comments on commit 8771cd7

Please sign in to comment.