Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
warehouse-management-ui
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
warehouse-management-ui
Commits
9592d25c
Commit
9592d25c
authored
May 18, 2021
by
Alex Pinto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated routes for live backend
parent
3d6d1ed6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
orders_api_util.jsx
src/util/orders_api_util.jsx
+2
-2
session_api_util.jsx
src/util/session_api_util.jsx
+1
-1
No files found.
src/util/orders_api_util.jsx
View file @
9592d25c
import
axios
from
'axios'
;
export
const
getOrders
=
()
=>
{
return
axios
.
get
(
`http://
localhost:8081
/api/orders`
);
return
axios
.
get
(
`http://
13.91.5.56:8088
/api/orders`
);
}
export
const
editOrder
=
(
order
)
=>
{
return
axios
.
put
(
`http://
localhost:8081
/api/orders/
${
order
.
id
}
`
,
order
)
return
axios
.
put
(
`http://
13.91.5.56:8088
/api/orders/
${
order
.
id
}
`
,
order
)
}
src/util/session_api_util.jsx
View file @
9592d25c
...
...
@@ -2,6 +2,6 @@ import axios from "axios";
export
const
createSession
=
(
payload
)
=>
{
return
axios
.
post
(
"http://
localhost:8081
/api/auth"
,
payload
)
.
post
(
"http://
13.91.5.56:8088
/api/auth"
,
payload
)
.
catch
((
err
)
=>
err
.
response
);
};
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