Compare commits
1 Commits
75ff65e76b
...
dev
| Author | SHA1 | Date | |
|---|---|---|---|
| 96f4ca6fd9 |
@@ -6,6 +6,8 @@ services:
|
||||
networks:
|
||||
ca-lose-internal:
|
||||
ipv4_address: 172.25.0.2
|
||||
proxynet:
|
||||
ipv4_address: 172.20.0.61
|
||||
restart: unless-stopped
|
||||
|
||||
backend:
|
||||
|
||||
@@ -51,7 +51,7 @@ export const MainForm = () => {
|
||||
// Fetch user data or any other data needed for the form
|
||||
try {
|
||||
const fetchUsers = async () => {
|
||||
const response = await fetch("/backend/default/users");
|
||||
const response = await fetch("http://localhost:8004/default/users");
|
||||
const data = await response.json();
|
||||
setUsers(data.users);
|
||||
};
|
||||
@@ -80,7 +80,7 @@ export const MainForm = () => {
|
||||
const confirmUser = async (selectedUser: string) => {
|
||||
try {
|
||||
const response = await fetch(
|
||||
`/backend/default/confirm-user?username=${selectedUser}`
|
||||
`http://localhost:8004/default/confirm-user?username=${selectedUser}`,
|
||||
);
|
||||
const data = await response.json();
|
||||
setNextID(data.nextID);
|
||||
|
||||
@@ -17,13 +17,16 @@ interface FormData {
|
||||
export const submitFormData = async (data: FormData, username: string) => {
|
||||
console.log(data);
|
||||
try {
|
||||
const response = await fetch(`/backend/default/new-entry?username=${username}`, {
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
const response = await fetch(
|
||||
`http://localhost:8004/default/new-entry?username=${username}`,
|
||||
{
|
||||
method: "POST",
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
},
|
||||
body: JSON.stringify(data),
|
||||
});
|
||||
);
|
||||
|
||||
if (!response.ok) {
|
||||
const errorText = await response.text();
|
||||
|
||||
Reference in New Issue
Block a user