Files

22 lines
368 B
JavaScript
Raw Permalink Normal View History

2016-02-22 14:36:07 -06:00
import extend from 'extend';
const ENDPOINT = '/data/v1/energy';
class EnergyDataApi {
static index(params){
return jQuery.ajax({
2016-03-11 17:38:03 -06:00
url: ENDPOINT,
data: JSON.stringify(params),
contentType: 'application/json',
type: 'POST',
2016-02-22 14:36:07 -06:00
dataType: 'json'
}).then((res)=>{
return res.data;
});
}
}
export default EnergyDataApi;