Basic REST communication in app.js.