Revision 50064
Added by Sandro La Bruzzo over 6 years ago
service_v10.js | ||
---|---|---|
16 | 16 |
return $http.post('/api/post/', $.param({'action': "query", 'query': query, 'start': (page - 1) * 10, 'filter':filter, 'value':value})); |
17 | 17 |
} |
18 | 18 |
}; |
19 |
|
|
20 |
factory.queryPid = function (pid) { |
|
21 |
$http.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded; charset=UTF-8"; |
|
22 |
console.log("Make query for PID "+pid) |
|
23 |
return $http.post('/api/queryPid/', $.param({ 'pid': pid})); |
|
24 |
}; |
|
25 |
|
|
19 | 26 |
factory.getStatsDetail = function () { |
20 | 27 |
//$http.defaults.headers.get["Content-Type"] = "application/x-www-form-urlencoded; charset=UTF-8"; |
21 | 28 |
return $http.get('currentStats.json'); |
Also available in: Unified diff
made a new look