Commit 2088388a authored by Kyle Muldoon's avatar Kyle Muldoon

now working

parent a1529d06
...@@ -160,7 +160,7 @@ export default function Checkout() { ...@@ -160,7 +160,7 @@ export default function Checkout() {
"quantity": 2, "quantity": 2,
"productRef": { "productRef": {
"id": "something", "id": "something",
"sku": "200000", "sku": "AFP-1",
"upc": "00002" "upc": "00002"
} }
} }
......
import axios from 'axios' import axios from 'axios'
export const sendOrderPost = async (order) => { export const sendOrderPost = (order) => {
const response = await axios.post("http://localhost:8080/api/orders", order) const response = axios.post("http://localhost:8080/api/orders", order)
return response.data .then((res) => res.data)
return response
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment