angular-resource
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -18,6 +18,7 @@ var path = require('path'); | ||
bind(app, 'post', uri, middleware, r.create); | ||
bind(app, 'post', iduri, middleware, r.save); | ||
bind(app, 'get', iduri, middleware, r.get); | ||
bind(app, 'post', iduri, middleware, r.save); | ||
bind(app, 'get', uri, middleware, r.query); | ||
bind(app, 'delete', iduri, middleware, r.remove); | ||
}; |
{ | ||
"name": "angular-resource", | ||
"description": "AngularJS $resource bindings for express.", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"licenses": [{ | ||
@@ -6,0 +6,0 @@ "type": "MIT", |
@@ -16,3 +16,3 @@ # node-angular-resource [![Build Status](https://travis-ci.org/roylines/node-angular-resource.png?branch=master)](https://travis-ci.org/roylines/node-angular-resource) | ||
return $resource('api/tasks/:id', { id: "@_id" }); | ||
}) | ||
}); | ||
``` | ||
@@ -95,2 +95,2 @@ | ||
You can now create includes for all of the $resource objects your angularjs services require and | ||
bind them in the same way. | ||
bind them in the same way. |
5129
19
95