|
|
@@ -18,7 +18,7 @@ export const listPelaporan = () => async (dispatch) => {
|
|
|
try {
|
|
|
dispatch({ type: PELAPORAN_LIST_REQUEST });
|
|
|
|
|
|
- const res = await fetch("http://localhost:5000/pelaporan");
|
|
|
+ const res = await fetch("http://ptb-Backend:5000/pelaporan");
|
|
|
const { data } = await res.json();
|
|
|
|
|
|
dispatch({
|
|
|
@@ -37,7 +37,7 @@ export const listPelaporanDetails = (number, ptId) => async (dispatch) => {
|
|
|
try {
|
|
|
dispatch({ type: PELAPORAN_DETAILS_REQUEST });
|
|
|
|
|
|
- const res = await fetch(`http://localhost:5000/pelaporan?number=${number}&ptId=${ptId}`);
|
|
|
+ const res = await fetch(`http://ptb-Backend:5000/pelaporan?number=${number}&ptId=${ptId}`);
|
|
|
const { data } = await res.json();
|
|
|
|
|
|
dispatch({
|
|
|
@@ -58,7 +58,7 @@ export const createPelaporan = (pelaporanResult) => async (dispatch) => {
|
|
|
type: PELAPORAN_CREATE_REQUEST,
|
|
|
});
|
|
|
|
|
|
- const res = await fetch("http://localhost:5000/pelaporan/create", {
|
|
|
+ const res = await fetch("http://ptb-Backend:5000/pelaporan/create", {
|
|
|
method: "POST",
|
|
|
body: pelaporanResult,
|
|
|
});
|