12 lines
317 B
TypeScript
12 lines
317 B
TypeScript
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
|
|
})
|