Commit 592cb41f authored by Kevin Kaminski's avatar Kevin Kaminski

Merge branch 'integration-demo' into 'dev'

integration demo

See merge request !21
parents c72a9ae9 5e5191a5
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
"name": "order-management-client", "name": "order-management-client",
"version": "0.1.0", "version": "0.1.0",
"private": true, "private": true,
"proxy": "http://localhost:8080", "proxy": "http://localhost:4",
"dependencies": { "dependencies": {
"@chakra-ui/icons": "^1.0.13", "@chakra-ui/icons": "^1.0.13",
"@chakra-ui/react": "^1.6.0", "@chakra-ui/react": "^1.6.0",
......
...@@ -15,7 +15,7 @@ const OrderShowPage = (props: any) => { ...@@ -15,7 +15,7 @@ const OrderShowPage = (props: any) => {
// const { id } = useParams<any>(); // const { id } = useParams<any>();
// const { order } = useOrder(id) // const { order } = useOrder(id)
const location = props.match.params.id; const location = props.match.params.id;
const apiUrl = 'http://localhost:8080/api/orders/' + location; const apiUrl = 'http://localhost:8084/api/orders/' + location;
const [order, setOrder] = useState<Order>(); const [order, setOrder] = useState<Order>();
const [items, setItems] = useState<Item[]>() const [items, setItems] = useState<Item[]>()
......
...@@ -2,7 +2,7 @@ import orderList from './mock-order-data' ...@@ -2,7 +2,7 @@ import orderList from './mock-order-data'
import { Order } from 'Order'; import { Order } from 'Order';
export const allOrders = () => { export const allOrders = () => {
const apiUrl = 'http://localhost:8080/api/orders'; const apiUrl = 'http://localhost:8084/api/orders';
return fetch(apiUrl).then((response) => response.json()) return fetch(apiUrl).then((response) => response.json())
} }
......
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