Interface is wired up for Approving/Rejecting posts

This commit is contained in:
Robin Ward
2015-04-14 14:21:02 -04:00
parent 96d2c5069b
commit 0c233e4e25
20 changed files with 273 additions and 90 deletions

View File

@ -173,6 +173,14 @@ export default function() {
});
});
this.get('/fruits/:id', function() {
return response({
__rest_serializer: "1",
fruit: {id: 1, name: 'apple', farmer_id: 1},
farmers: [{id: 1, name: 'Evil Trout'}]
});
});
this.get('/widgets/:widget_id', function(request) {
const w = _widgets.findBy('id', parseInt(request.params.widget_id));
if (w) {