Merge pull request #5 from strongloop/feature/fix-readme

README: mount REST at /api in the sample code
This commit is contained in:
Ritchie Martori 2013-12-09 14:03:18 -08:00
commit 7b091d28d1
1 changed files with 2 additions and 2 deletions

View File

@ -15,8 +15,8 @@ var Product = loopback.Model.extend('product');
Product.attachTo(loopback.memory());
app.model(Product);
app.use(loopback.rest());
app.use('/explorer', explorer(app));
app.use('/api', loopback.rest());
app.use('/explorer', explorer(app, { basePath: '/api' }));
app.listen(3000);
```