delete insert selesai, show data masih belum sesuai

This commit is contained in:
2025-06-08 11:25:59 +07:00
parent 5d1301ddae
commit cabb052b21
12 changed files with 90 additions and 130 deletions
+9
View File
@@ -0,0 +1,9 @@
export default defineEventHandler(async (event) => {
const body = await readBody(event)
const res = await $fetch(`http://10.10.150.131:8080/api/menu/delete/${body.key}`, {
method: "DELETE",
headers: {"Content-Type": "application/json"},
})
console.log(res)
return res
})
+11
View File
@@ -0,0 +1,11 @@
export default defineEventHandler(async(event)=> {
const body = await readBody(event)
console.log(body)
const a = await $fetch(`http://10.10.150.131:8080/api/menu/role/type/${body}`,{
headers: {
"Content-Type": "application/json",
},
method: "GET",
})
return a
})
@@ -1,11 +1,9 @@
export default defineEventHandler(async (event) => {
const body = await readBody(event)
console.log(body)
const res = await $fetch(`http://10.10.150.131:8080/api/menu/role/insert`, {
method: "POST",
headers: {"Content-Type": "application/json"},
body:body
})
// console.log(res)
return res
})