Line | |
---|
1 | (function () {
|
---|
2 | var module = appStatisticsPlugin.getAngularModule();
|
---|
3 | var apiUrl = 'api/Statistics/Data/';
|
---|
4 | module.factory('app.statistics.data.service',
|
---|
5 | ['$resource', function ($resource) {
|
---|
6 | return $resource(apiUrl + ':action', { id: '@id' }, {
|
---|
7 | getJobs: { method: 'GET', params: { action: 'GetJobs' }, isArray: true },
|
---|
8 | getJobsByUserId: { method: 'GET', params: { action: 'GetJobsByUserId' }, isArray: true },
|
---|
9 | getTasksByJobId: { method: 'GET', params: { action: 'GetTasksByJobId' }, isArray: true }
|
---|
10 | });
|
---|
11 | }]
|
---|
12 | );
|
---|
13 | })(); |
---|
Note: See
TracBrowser
for help on using the repository browser.