forked from magonysandormate/PeePal
Kész(?????)
This commit is contained in:
@@ -25,11 +25,13 @@ export default function Csempe() {
|
||||
}, []);
|
||||
|
||||
function mosdoTorles(mosdoId){
|
||||
const token = localStorage.getItem("token");
|
||||
fetch("http://localhost:8000/api/mosdotorles/" + mosdoId, {
|
||||
method: "DELETE",
|
||||
header: {
|
||||
headers: {
|
||||
"Accept" : "application/json",
|
||||
"Content-Type" : "application/json"
|
||||
"Content-Type" : "application/json",
|
||||
"Authorization": `Bearer ${token}`
|
||||
}
|
||||
})
|
||||
.then(response => {
|
||||
|
||||
@@ -37,14 +37,17 @@ export default function HozzaadForm() {
|
||||
ar,
|
||||
nyitva,
|
||||
utvonal,
|
||||
koordinatak,
|
||||
felhasznalo_id: null
|
||||
koordinatak
|
||||
};
|
||||
|
||||
try {
|
||||
const token = localStorage.getItem("token");
|
||||
const response = await fetch("http://localhost:8000/api/hozzaadas", {
|
||||
method: "POST",
|
||||
headers: { "Content-Type": "application/json" },
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
"Authorization": `Bearer ${token}`
|
||||
},
|
||||
body: JSON.stringify(wcInfo)
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user