Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions lib/commands/project/swagger_editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down