diff --git a/frontend/src/App.vue b/frontend/src/App.vue index d9de087ef..bb545577b 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -1,35 +1,6 @@ diff --git a/frontend/src/api/category.js b/frontend/src/api/category.js index ef582c580..0f8ecd3fd 100644 --- a/frontend/src/api/category.js +++ b/frontend/src/api/category.js @@ -5,27 +5,27 @@ import { store } from "@/store"; const prefix = baseURL + "categories"; const categoryURLs = { - get_all: `${prefix}`, - get_category: category => `${prefix}/${category}`, - delete_category: category => `${prefix}/${category}`, + getAll: `${prefix}`, + getCategory: category => `${prefix}/${category}`, + deleteCategory: category => `${prefix}/${category}`, }; export const categoryAPI = { async getAll() { - let response = await apiReq.get(categoryURLs.get_all); + let response = await apiReq.get(categoryURLs.getAll); return response.data; }, async create(name) { - let response = await apiReq.post(categoryURLs.get_all, { name: name }); + let response = await apiReq.post(categoryURLs.getAll, { name: name }); store.dispatch("requestCategories"); return response.data; }, async getRecipesInCategory(category) { - let response = await apiReq.get(categoryURLs.get_category(category)); + let response = await apiReq.get(categoryURLs.getCategory(category)); return response.data; }, async delete(category) { - let response = await apiReq.delete(categoryURLs.delete_category(category)); + let response = await apiReq.delete(categoryURLs.deleteCategory(category)); store.dispatch("requestCategories"); return response.data; }, diff --git a/frontend/src/api/recipe.js b/frontend/src/api/recipe.js index 97a4b08c4..b72d18a37 100644 --- a/frontend/src/api/recipe.js +++ b/frontend/src/api/recipe.js @@ -56,9 +56,7 @@ export const recipeAPI = { const fd = new FormData(); fd.append("image", fileObject); fd.append("extension", fileObject.name.split(".").pop()); - let response = apiReq.put(recipeURLs.updateImage(recipeSlug), fd); - return response; }, diff --git a/frontend/src/components/Recipe/MobileRecipeCard.vue b/frontend/src/components/Recipe/MobileRecipeCard.vue index 9b436c076..b926eee2b 100644 --- a/frontend/src/components/Recipe/MobileRecipeCard.vue +++ b/frontend/src/components/Recipe/MobileRecipeCard.vue @@ -1,5 +1,10 @@