Skip to content

Commit

Permalink
refactor swagger docs and seggregated the apis according to major sec…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
wajeshubham committed Jul 10, 2023
1 parent e3bc731 commit 7f952e8
Show file tree
Hide file tree
Showing 3 changed files with 15,617 additions and 6,804 deletions.
5 changes: 4 additions & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
{ "ignore": ["seed-credentials.json"] }
{
"ext": ".js, .mjs, .html, .css, .coffee, .litcoffee, .json, .yaml",
"ignore": ["seed-credentials.json"]
}
10 changes: 9 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,15 @@ import { seedTodos } from "./seeds/todo.seeds.js";
import { getGeneratedCredentials, seedUsers } from "./seeds/user.seeds.js";

// * API DOCS
app.use("/api/v1/docs", swaggerUi.serve, swaggerUi.setup(swaggerDocument));
app.use(
"/api/v1/docs",
swaggerUi.serve,
swaggerUi.setup(swaggerDocument, {
swaggerOptions: {
docExpansion: "none", // keep all the sections collapsed by default
},
})
);

// * healthcheck
app.use("/api/v1/healthcheck", healthcheckRouter);
Expand Down
Loading

0 comments on commit 7f952e8

Please sign in to comment.