Commit 9592d25c authored by Alex Pinto's avatar Alex Pinto

updated routes for live backend

parent 3d6d1ed6
import axios from 'axios'; import axios from 'axios';
export const getOrders =() => { 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) => { 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)
} }
...@@ -2,6 +2,6 @@ import axios from "axios"; ...@@ -2,6 +2,6 @@ import axios from "axios";
export const createSession = (payload) => { export const createSession = (payload) => {
return axios return axios
.post("http://localhost:8081/api/auth", payload) .post("http://13.91.5.56:8088/api/auth", payload)
.catch((err) => err.response); .catch((err) => err.response);
}; };
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