10 lines
289 B
TypeScript
10 lines
289 B
TypeScript
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
|
|
})
|