Hi Swagger teams ! *How could i simply customize swagger-ui-dist ? *
I saw these posts on github : - Add filter <https://github.com/swagger-api/swagger-ui/pull/3196> - Customize header and css colors <https://github.com/swagger-api/swagger-ui/issues/3335> Extract of my code : const path = require('path') const replace = require('replace'); const express = require('express') const app = express() const swaggerUiAssetPath = require("swagger-ui-dist").absolutePath() const { LOCALHOST_URL } = process.env replace({ regex: 'http.*swagger.json', replacement : LOCALHOST_URL + ':3012/public/swagger.json', paths: [ path.join(swaggerUiAssetPath, 'index.html') ], recursive:false, silent:true, }) app .use('/', express.static(swaggerUiAssetPath)) .use('/public',express.static('/usr/src/documentation/public')) .listen(3000) Thanks for your help ! -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
