diff --git a/project-skeletons/connect/app.js b/project-skeletons/connect/app.js index 5f4851e1..c6db38b0 100644 --- a/project-skeletons/connect/app.js +++ b/project-skeletons/connect/app.js @@ -18,8 +18,9 @@ module.exports = new Promise(function (resolve, reject) { app.listen(port); if (swaggerConnect.runner.swagger.paths['/hello']) { - console.log('try this:\ncurl http://127.0.0.1:' + port + '/hello?name=Scott'); + var basePath = swaggerConnect.runner.swagger.basePath || ''; + console.log('try this:\ncurl http://127.0.0.1:' + port + basePath + '/hello?name=Scott'); } resolve(app); }); -}); \ No newline at end of file +}); diff --git a/project-skeletons/express/app.js b/project-skeletons/express/app.js index 8745ebff..cf437116 100644 --- a/project-skeletons/express/app.js +++ b/project-skeletons/express/app.js @@ -18,9 +18,10 @@ module.exports = new Promise(function (resolve, reject) { var port = process.env.PORT || 10010; app.listen(port, function() { if (swaggerExpress.runner.swagger.paths['/hello']) { - console.log('try this:\ncurl http://127.0.0.1:' + port + '/hello?name=Scott'); + let basePath = swaggerExpress.runner.swagger.basePath || ''; + console.log('try this:\ncurl http://127.0.0.1:' + port + basePath + '/hello?name=Scott'); } resolve(app); }); }); -}); \ No newline at end of file +}); diff --git a/project-skeletons/hapi/app.js b/project-skeletons/hapi/app.js index e1b3ecc0..9e457ae7 100644 --- a/project-skeletons/hapi/app.js +++ b/project-skeletons/hapi/app.js @@ -27,7 +27,8 @@ module.exports = new Promise(function (resolve, reject) { } app.start(function () { if (swaggerHapi.runner.swagger.paths['/hello']) { - console.log('try this:\ncurl http://127.0.0.1:' + port + '/hello?name=Scott'); + var basePath = swaggerHapi.runner.swagger.basePath || ''; + console.log('try this:\ncurl http://127.0.0.1:' + port + basePath + '/hello?name=Scott'); } resolve(app); }); diff --git a/project-skeletons/restify/app.js b/project-skeletons/restify/app.js index 4c4f90c4..10c79b73 100644 --- a/project-skeletons/restify/app.js +++ b/project-skeletons/restify/app.js @@ -19,9 +19,10 @@ module.exports = new Promise(function (resolve, reject) { var port = process.env.PORT || 10010; app.listen(port, function () { if (swaggerRestify.runner.swagger.paths['/hello']) { - console.log('try this:\ncurl http://127.0.0.1:' + port + '/hello?name=Scott'); + var basePath = swaggerRestify.runner.swagger.basePath || ''; + console.log('try this:\ncurl http://127.0.0.1:' + port + basePath + '/hello?name=Scott'); } resolve(app); }); }); -}); \ No newline at end of file +});