Files
old-spike/client/api/development/energy_data.js
2016-02-22 20:02:45 -06:00

20 lines
321 B
JavaScript

import extend from 'extend';
const ENDPOINT = '/data/v1/energy';
class EnergyDataApi {
static index(params){
return jQuery.ajax({
url: ENDPOINT + '?' + jQuery.param(params),
type: 'GET',
dataType: 'json'
}).then((res)=>{
return res.data;
});
}
}
export default EnergyDataApi;