examples launch fix

This commit is contained in:
Alexander Ryzhikov 2015-11-24 07:26:07 +03:00
parent b8033fc1a1
commit 69f6c41315
2 changed files with 2 additions and 2 deletions

View File

@ -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');

View File

@ -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');