examples launch fix
This commit is contained in:
parent
b8033fc1a1
commit
69f6c41315
|
@ -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');
|
||||
|
||||
|
|
|
@ -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');
|
||||
|
||||
|
|
Loading…
Reference in New Issue