delete insert selesai, show data masih belum sesuai
This commit is contained in:
@@ -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
|
||||
})
|
||||
Reference in New Issue
Block a user