diff --git a/lib/commands/project/swagger_editor.js b/lib/commands/project/swagger_editor.js index d03247de..788a23a3 100644 --- a/lib/commands/project/swagger_editor.js +++ b/lib/commands/project/swagger_editor.js @@ -65,8 +65,10 @@ function edit(project, options, cb) { // serve swagger-editor app.use(SWAGGER_EDITOR_SERVE_PATH, serveStatic(config.swagger.editorDir)); - - + + // Serve the references of the definition file + app.use("/", serveStatic(path.dirname(swaggerFile))); + // start // var http = require('http');