1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| //= wrapped
|
| /*
| NOTE: This file is used by the create-ng-domain action.
| You can modify or extend the DomainServiceFactory but it is recommended that you not delete it.
| */
|
| angular
| .module("xdashangular.core")
| .factory("DomainServiceFactory", DomainServiceFactory);
|
| function DomainServiceFactory($resource) {
| return function(url, paramDefaults, actions, options) {
| var resourceActions = {"update": {method: "PUT"}, "list": {method: "GET", isArray: true}};
| angular.extend(resourceActions, actions);
|
| return $resource(
| url,
| paramDefaults || null,
| resourceActions,
| options || {}
| );
| }
| }
|
|