Compare commits

..

1 Commits

Author SHA1 Message Date
96f4ca6fd9 edited docker config 2026-01-21 16:32:45 +01:00
3 changed files with 13 additions and 8 deletions

View File

@@ -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:

View File

@@ -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);

View File

@@ -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}`, {
const response = await fetch(
`http://localhost:8004/default/new-entry?username=${username}`,
{
method: "POST",
headers: {
"Content-Type": "application/json",
},
body: JSON.stringify(data),
});
},
);
if (!response.ok) {
const errorText = await response.text();