diff --git a/src/components/CreateProduct/CreateProduct.js b/src/components/CreateProduct/CreateProduct.js index 9d637b1..6bcb514 100644 --- a/src/components/CreateProduct/CreateProduct.js +++ b/src/components/CreateProduct/CreateProduct.js @@ -61,7 +61,7 @@ function CreateProduct() { return true }); if (valid) { - axios.post('https://scandiweb-task-marwan-elsheikh.000webhostapp.com//save', product).then(function (response) { + axios.post('https://scandiweb-task-marwan-elsheikh.000webhostapp.com/', product).then(function (response) { console.log(response.data); if (response.data.status === '200') { navigate('/');