forked from magonysandormate/PeePal
HTTPS készítés folyamatban...
This commit is contained in:
@@ -26,7 +26,7 @@ export default function HozzaadForm() {
|
|||||||
koordinatak: koordinatak
|
koordinatak: koordinatak
|
||||||
}
|
}
|
||||||
|
|
||||||
fetch("http://192.168.0.78:8000/api/hozzaadas", {
|
fetch("http://localhost:8000/api/hozzaadas", {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: {
|
headers: {
|
||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
export async function mosdokFetch() {
|
export async function mosdokFetch() {
|
||||||
try {
|
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) {
|
if (!response.ok) {
|
||||||
throw new Error(`Hiba: ${response.status}`);
|
throw new Error(`Hiba: ${response.status}`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user