Merge pull request #142 from Coobaha/fix/examples

examples launch fix
This commit is contained in:
Simon Ho 2016-05-02 11:07:19 -07:00
commit cc53fbea98
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');