Advertisement
Guest User

Untitled

a guest
Nov 25th, 2015
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. import angular from 'angular';
  2. import 'angular-resource';
  3.  
  4. export default angular.module('rehabilitationSectionResourceModule', [ 'ngResource' ])
  5. .factory('RehabilitationSectionResource', resource);
  6.  
  7. function resource($resource, appConfig){
  8. 'use strict';
  9.  
  10. return $resource('api/vozovky/rehab', {}, {
  11. get: {method:'GET', url: appConfig.apiUrl + '/rehab/GetRehabilitationSection'},
  12. //update: {method: 'PUT', url: appConfig.apiUrl + '/rehab/UpdateRehabilitationSection'},
  13. remove: {method: 'DELETE', url: appConfig.apiUrl + '/rehab/DeleteRehabilitationSection'}
  14. });
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement