--
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 swagger-swaggers...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On May 23, 2016, at 12:50 AM, linchun huang <vcsh...@gmail.com> wrote:
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);
...
});