diff --git a/backend/src/server.ts b/backend/src/server.ts index d41ee558..001a66e8 100644 --- a/backend/src/server.ts +++ b/backend/src/server.ts @@ -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}`);