From 2686f254cf0de8e25494c7797c4e5b25473b7baf Mon Sep 17 00:00:00 2001 From: Miroslav Bajtos Date: Mon, 9 Dec 2013 18:12:30 +0100 Subject: [PATCH] README: mount REST at /api in the sample code --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 9871cfc..f0cc4cd 100644 --- a/README.md +++ b/README.md @@ -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); ```