updated rest defs in app.js