Files
old-spike/client/api/development/energy_data.js
2016-03-11 17:38:03 -06:00

22 lines
368 B
JavaScript

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