perbaikan setting pinia dan simpan user role belum fix, ad env.example
This commit is contained in:
@@ -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}` }
|
||||
|
||||
@@ -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
|
||||
})
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user