SHARE
TWEET

Untitled

a guest Dec 16th, 2014 12 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. appServices.factory('ChunksFactory', ['$resource', function($resource) {
  2.    
  3.     var baseUrl = "http://192.168.1.10:5000/api/v1/";
  4.     var actionUrl = baseUrl + "chunks/";
  5.  
  6.     return $resource(actionUrl + ":id", {id: "@id"},
  7.     {
  8.         'getAll': {
  9.             method: 'GET',
  10.             isArray:true
  11.         },
  12.         'update':  {
  13.             method: 'PUT'
  14.         },
  15.         'assignToPatient':  {
  16.             'method': 'PUT',
  17.             'url': actionUrl + ":id/assign-to-patient",
  18.             responseType: 'json'
  19.         },
  20.         'reset':  {
  21.             'method': 'PUT',
  22.             'url': actionUrl + ":id/reset",
  23.             responseType: 'json'
  24.         },
  25.     });
  26. }]);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top