static getProduct()

in src/api/productApi.js [9:15]


    static getProduct(id) {
        return fetch('/api/products/' + id).then(response => {
            return response.json();
        }).catch(error => {
            return error;
        });
    }