insert ingredents
This commit is contained in:
parent
22e2dab830
commit
8af791deb9
6 changed files with 28 additions and 32 deletions
|
@ -11,6 +11,8 @@ export const getRecipeById = async (id) => {
|
|||
};
|
||||
|
||||
export const addRecipe = async (recipeData) => {
|
||||
console.log(JSON.stringify(recipeData))
|
||||
// return
|
||||
const response = await fetch("http://localhost:6063/add-recipe", {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue