From 7faeb32b14b46d078bf74701d65b8f3b00906dc6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A1ndor=20M=C3=A1t=C3=A9=20Magony?= Date: Fri, 11 Apr 2025 13:21:08 +0200 Subject: [PATCH] =?UTF-8?q?HTTPS=20k=C3=A9sz=C3=ADt=C3=A9s=20folyamatban..?= =?UTF-8?q?.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/peepal_react/src/WC_Komponens/Hozzadas/HozzaadForm.jsx | 2 +- frontend/peepal_react/src/apiFetch.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/peepal_react/src/WC_Komponens/Hozzadas/HozzaadForm.jsx b/frontend/peepal_react/src/WC_Komponens/Hozzadas/HozzaadForm.jsx index b47b6da..165da49 100644 --- a/frontend/peepal_react/src/WC_Komponens/Hozzadas/HozzaadForm.jsx +++ b/frontend/peepal_react/src/WC_Komponens/Hozzadas/HozzaadForm.jsx @@ -26,7 +26,7 @@ export default function HozzaadForm() { koordinatak: koordinatak } - fetch("http://192.168.0.78:8000/api/hozzaadas", { + fetch("http://localhost:8000/api/hozzaadas", { method: "POST", headers: { "Content-Type": "application/json" diff --git a/frontend/peepal_react/src/apiFetch.js b/frontend/peepal_react/src/apiFetch.js index ba4036f..1ffb918 100644 --- a/frontend/peepal_react/src/apiFetch.js +++ b/frontend/peepal_react/src/apiFetch.js @@ -1,6 +1,6 @@ export async function mosdokFetch() { try { - const response = await fetch('http://192.168.0.78:8000/api/mosdok'); + const response = await fetch('http://localhost:8000/api/mosdok'); if (!response.ok) { throw new Error(`Hiba: ${response.status}`); }