jadwal dokter

This commit is contained in:
2024-12-18 07:32:08 +07:00
parent 9999faa387
commit baf1fafabd
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",
});
}
})