Commit c95095be authored by earndt's avatar earndt

[AFP-Inf] 👷 Modifies deployment.yaml, api calls [@earndt]

parent 802b30ec
This diff is collapsed.
......@@ -14,10 +14,12 @@ import '../styles/stylesheets/body.css'
const OrderShowPage = (props: any) => {
const URL = (process.env.REACT_APP_BACKEND_URL as string)
const BASE_PATH = `${URL}/api/orders`
// const { id } = useParams<any>();
// const { order } = useOrder(id)
const location = props.match.params.id;
const apiUrl = 'http://localhost:8084/api/orders/' + location;
const apiUrl = `${BASE_PATH}/` + location;
const [order, setOrder] = useState<Order>();
const [items, setItems] = useState<Item[]>()
......
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