save roleMenuUser belum fix

This commit is contained in:
2025-06-07 12:46:53 +07:00
parent fe32e13ca4
commit 0cef51f13c
8 changed files with 110 additions and 181 deletions

View File

@@ -1,7 +1,10 @@
export default defineEventHandler(async (event) => {
const res = await $fetch(`http://10.10.150.131:8080/api/menu/type`, {
method: "GET",
headers: {"Content-Type": "application/json"}
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