data dari api
This commit is contained in:
11
server/api/roleMenu/roleMenu.post.ts
Normal file
11
server/api/roleMenu/roleMenu.post.ts
Normal file
@@ -0,0 +1,11 @@
|
||||
export default defineEventHandler(async(event)=> {
|
||||
const body = await readBody(event)
|
||||
console.log(body)
|
||||
const a = await $fetch(`http://10.10.150.131:8080/api/menu/role/type/${body}`,{
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
method: "GET",
|
||||
})
|
||||
return a
|
||||
})
|
||||
Reference in New Issue
Block a user