import http from "../http";

export default class recipes {
    static getAll() {
        return http.get("/recipes", true).then(response => {
            return response;
        });
    }

    static get(id) {
        return http.get(`/recipes/${id}`, true).then(response => {
            return response;
        });
    }
}

import http from "../http";

export default class recipes {
    static getAll() {
        return http.get("/recipes?limit=1000", true).then(response => {
            return response;
        });
    }

    static get(id) {
        return http.get(`/recipes/${id}`, true).then(response => {
            return response;
        });
    }
}
 
append ?limit query param to /recipes call now that the API has pagination