If you are using Swagger2.0, you can pass options as the second parameter into the constructor of the swagger-ui middleware.
For now the swagger-ui and api-doc are the two options that I am concerned about, other options can be referenced
here!
var SwaggerExpress = require('swagger-express-mw');
var SwaggerUi = require('swagger-tools/middleware/swagger-ui');
var app = require('express')();
...
SwaggerExpress.create(config, function(err, swaggerExpress) {
var option = {
swaggerUi:"/any_path_you_want",//swagger ui web page
apiDocs:"/any_path_you_want"//api document in json format
};
app.use(SwaggerUi(swaggerExpress.runner.swagger, option));
// install middleware
swaggerExpress.register(app);
...
});