perbaikan setting pinia dan simpan user role belum fix, ad env.example

This commit is contained in:
2025-06-05 15:20:22 +07:00
parent 35772f38c9
commit fe32e13ca4
16 changed files with 514 additions and 87 deletions
+1 -2
View File
@@ -1,5 +1,4 @@
import client from "~/server/utils/auth";
import { sendRedirect } from 'h3';
import cors from 'cors';
export default defineEventHandler(async (event) => {
@@ -66,7 +65,7 @@ export default defineEventHandler(async (event) => {
// });
// }
// }
console.log(authorizationUrl)
// console.log(authorizationUrl)
return { callbackURL: authorizationUrl }
// return { callbackURL: authorizationUrl+`&response_type=${responseType}&scope=${scope}` }
+8
View File
@@ -0,0 +1,8 @@
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"}
})
// console.log(res)
return res
})
+1 -1
View File
@@ -2,7 +2,7 @@ import axios from "axios";
export default defineEventHandler(async (event) => {
const read_body = await readBody(event)
console.log(`ini ${read_body}`)
// console.log(`ini ${read_body}`)
try {
const response = await axios.get(`http://10.10.150.131:8080/api/login/${read_body.key}`)
// console.log(response.data.data)