Skip to content

Commit

Permalink
Remover o Header da Swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
rtenorioh committed Mar 16, 2022
1 parent 3316f16 commit c8290bc
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions backend/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ import { logger } from "./utils/logger";
import { StartAllWhatsAppsSessions } from "./services/WbotServices/StartAllWhatsAppsSessions";
import swaggerUi from "swagger-ui-express";

import swaggerDocs from "./swagger.json"
import swaggerDocs from "./swagger.json";

app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(swaggerDocs));
var options = {
customCss: '.swagger-ui .topbar { display: none }'
};

app.use("/api-docs", swaggerUi.serve, swaggerUi.setup(swaggerDocs, options));

const server = app.listen(process.env.PORT, () => {
logger.info(`Server started on port: ${process.env.PORT}`);
Expand Down

0 comments on commit c8290bc

Please sign in to comment.