From 69f6c41315fbf9dbfb3935a7f5db1f37f2313cc2 Mon Sep 17 00:00:00 2001 From: Alexander Ryzhikov Date: Tue, 24 Nov 2015 07:26:07 +0300 Subject: [PATCH] examples launch fix --- example/hidden.js | 2 +- example/simple.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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');