README: mount REST at /api in the sample code

This commit is contained in:
Miroslav Bajtos 2013-12-09 18:12:30 +01:00
parent 066511775a
commit 2686f254cf
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);
```