Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import angular from 'angular';
- import 'angular-resource';
- export default angular.module('rehabilitationSectionResourceModule', [ 'ngResource' ])
- .factory('RehabilitationSectionResource', resource);
- function resource($resource, appConfig){
- 'use strict';
- return $resource('api/vozovky/rehab', {}, {
- get: {method:'GET', url: appConfig.apiUrl + '/rehab/GetRehabilitationSection'},
- //update: {method: 'PUT', url: appConfig.apiUrl + '/rehab/UpdateRehabilitationSection'},
- remove: {method: 'DELETE', url: appConfig.apiUrl + '/rehab/DeleteRehabilitationSection'}
- });
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement