Skip to content

Commit

Permalink
fix:swaggerUI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
motebaya committed Jan 1, 2024
1 parent 1c3ca97 commit 2bd93c0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 2 deletions.
3 changes: 3 additions & 0 deletions public/css/swagger-ui.css

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions public/js/swagger-ui-bundle.js

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions public/js/swagger-ui-standalone-preset.js

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions routes/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,15 @@ const options = {
};
routerAPI.use(
"/docs",
express.static(path.join(process.cwd(), "public")),
swaggerUi.serve,
swaggerUi.setup(swaggerJSDoc(options), {
customSiteTitle: "TiktokJS - api documentation",
customfavIcon: "/images/logo.ico",
customCssUrl: "/css/custom.min.css",
customCssUrl: ["/css/custom.min.css", "/css/swagger-ui.css"],
customJs: [
"/js/swagger-ui-bundle.js",
"/js/swagger-ui-standalone-preset.js",
],
})
);

Expand Down

0 comments on commit 2bd93c0

Please sign in to comment.