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

now working

parent a1529d06
......@@ -160,7 +160,7 @@ export default function Checkout() {
"quantity": 2,
"productRef": {
"id": "something",
"sku": "200000",
"sku": "AFP-1",
"upc": "00002"
}
}
......
import axios from 'axios'
export const sendOrderPost = async (order) => {
const response = await axios.post("http://localhost:8080/api/orders", order)
return response.data
export const sendOrderPost = (order) => {
const response = axios.post("http://localhost:8080/api/orders", order)
.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