diff --git a/example/hidden.js b/example/hidden.js index b152d93..3c65808 100644 --- a/example/hidden.js +++ b/example/hidden.js @@ -13,7 +13,7 @@ User.attachTo(loopback.memory()); app.model(User); var apiPath = '/api'; -app.use('/explorer', explorer(app, {basePath: apiPath})); +explorer(app, {basePath: apiPath}); app.use(apiPath, loopback.rest()); console.log('Explorer mounted at localhost:' + port + '/explorer'); diff --git a/example/simple.js b/example/simple.js index 70937cd..550aa2d 100644 --- a/example/simple.js +++ b/example/simple.js @@ -12,7 +12,7 @@ Product.attachTo(loopback.memory()); app.model(Product); var apiPath = '/api'; -app.use('/explorer', explorer(app, {basePath: apiPath})); +explorer(app, {basePath: apiPath}); app.use(apiPath, loopback.rest()); console.log('Explorer mounted at http://localhost:' + port + '/explorer');