githubtrue/frontend/app/services/VehicleService.js @ b88dd6bb
1 |
angular.module('pvpk') |
---|---|
2 |
.factory('Vehicle', ['$resource', 'config', function ($resource, config) { |
3 |
return $resource(config.API_URL + '/vehicles', null, { |
4 |
'query': { |
5 |
url: config.API_URL + '/vehicles', |
6 |
method: 'GET', |
7 |
isArray: true, |
8 |
headers: { |
9 |
'Content-Type': 'application/json', |
10 |
'Accept': 'application/json', |
11 |
'jwt': config.API_TOKEN |
12 |
}
|
13 |
}
|
14 |
});
|
15 |
}]);
|
- « Předchozí
- 1
- 2
- Další »