dont know what happened

This commit is contained in:
Eric Hulburd
2016-02-22 14:36:07 -06:00
parent 0ddae601bd
commit b8d0a9434b
69 changed files with 3711 additions and 0 deletions

20
client/api/power_data.js Normal file
View File

@@ -0,0 +1,20 @@
const ENDPOINT = '/data/v1/power';
import extend from 'extend';
// send all date parameters as unix timestamps;
class PowerDataApi {
static index(params){
return jQuery.ajax({
url: ENDPOINT + '?' + jQuery.param(params),
type: 'GET',
dataType: 'json'
}).then((res)=>{
return res.data;
});
}
}
export default PowerDataApi;