Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ecommerce-maven
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ascend
ecommerce-maven
Commits
2088388a
Commit
2088388a
authored
May 11, 2021
by
Kyle Muldoon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
now working
parent
a1529d06
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
checkout.js
ecom-web/src/components/checkout/checkout.js
+1
-1
order-api.js
ecom-web/src/util/order-api.js
+4
-3
No files found.
ecom-web/src/components/checkout/checkout.js
View file @
2088388a
...
...
@@ -160,7 +160,7 @@ export default function Checkout() {
"quantity"
:
2
,
"productRef"
:
{
"id"
:
"something"
,
"sku"
:
"
200000
"
,
"sku"
:
"
AFP-1
"
,
"upc"
:
"00002"
}
}
...
...
ecom-web/src/util/order-api.js
View file @
2088388a
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment