Files
old-spike/client/api/houses.js
2016-02-10 16:11:56 -06:00

19 lines
312 B
JavaScript

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