diff --git a/example/app.js b/example/app.js index 56c91df..7fce5f8 100644 --- a/example/app.js +++ b/example/app.js @@ -6,7 +6,10 @@ var path = require('path'); app.use(app.router); // expose a rest api -app.use(loopback.rest()); +app.use('/api', loopback.rest()); + +app.use(loopback.static(path.join(__dirname, 'public'))); + app.configure(function () { app.set('port', process.env.PORT || 3000); @@ -25,7 +28,7 @@ app.model(container); app.get('/', function (req, res, next) { res.setHeader('Content-Type', 'text/html'); var form = "
" + + "List all containers
" + "Upload to container c1:
" + "