Merge branch 'master' of https://github.com/davila-erdianita/vuetify3 into ahdan-punya

This commit is contained in:
ahdan15
2024-12-18 10:06:04 +07:00
5 changed files with 121 additions and 1 deletions

View File

@@ -0,0 +1,18 @@
import axios from "axios";
export default defineEventHandler(async (event) => {
const url = useRuntimeConfig().public.API_URL+"/jadwaldokter/detail";
// console.log("data"+url)
try {
const response = await axios.get(url)
// const response = await axios.get("http://10.10.150.129:8082/api/jadwaldokter/detail")
return response.data
} catch (error) {
console.error("Error:", error);
throw createError({
statusCode: 500,
statusMessage: "Failed to fetch data from satu RSSA API",
});
}
})