10 lines
275 B
TypeScript
10 lines
275 B
TypeScript
export default defineEventHandler(async (event) => {
|
|
const body = await readBody(event)
|
|
const res = await $fetch(`http://10.10.150.131:8080/api/menu/role/insert`, {
|
|
method: "POST",
|
|
headers: {"Content-Type": "application/json"},
|
|
body:body
|
|
})
|
|
return res
|
|
})
|