Skip to content
Browse files

Add some Angular resources for testing

  • Loading branch information...
1 parent d8c785d commit e6220d3e2678e2fb0d38615a3d33b1516ef67400 @emanchado committed Sep 18, 2011
Showing with 14 additions and 0 deletions.
  1. +14 −0 leakyleaks.html
View
14 leakyleaks.html
@@ -59,6 +59,20 @@
{ getTags: {method: 'JSON', isArray: true, params: {id: 'tags'}},
getOffices: {method: 'JSON', isArray: true, params: {id: 'offices'}}}
);
+ this.LeakFeedCableProxyTest = $resource(
+ 'http://localhost/:id.json',
+ { callback: 'JSON_CALLBACK' },
+ { getByTag: {method: 'GET', isArray: true, params: {type: 'tag'}},
+ getByOffice: {method: 'GET', isArray: true, params: {type: 'office'}}}
+ );
+ this.LeakFeedResourceProxyTest = $resource(
+ 'http://localhost/:id.json',
+ { callback: 'JSON_CALLBACK' },
+ { getTags: {method: 'GET', isArray: true, params: {id: 'tags'}},
+ getOffices: {method: 'GET', isArray: true, params: {id: 'offices'}}}
+ );
+ // this.LeakFeedCableProxy = this.LeakFeedCableProxyTest;
+ // this.LeakFeedResourceProxy = this.LeakFeedResourceProxyTest;
}
LeakyLeaksController.prototype = {
init: function() {

0 comments on commit e6220d3

Please sign in to comment.
Something went wrong with that request. Please try again.