update link api
This commit is contained in:
@@ -5,7 +5,7 @@ export default defineEventHandler(async (event) => {
|
||||
// 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")
|
||||
// const response = await axios.get("http://10.10.123.140:8082/api/jadwaldokter/detail")
|
||||
return response.data
|
||||
} catch (error) {
|
||||
console.error("Error:", error);
|
||||
|
||||
@@ -4,7 +4,7 @@ export default defineEventHandler(async (event) => {
|
||||
console.log(body)
|
||||
try {
|
||||
console.log("MASUK DALAM SINI")
|
||||
const response = await axios.post("http://10.10.150.129:8082/api/kunjunganpasien/listkunjunganpasien", body);
|
||||
const response = await axios.post("http://10.10.123.140:8082/api/kunjunganpasien/listkunjunganpasien", body);
|
||||
console.log(response.data)
|
||||
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ export default defineEventHandler(async (event) => {
|
||||
console.log(body)
|
||||
try {
|
||||
console.log("MASUK DALAM SINI")
|
||||
const response = await axios.post("http://10.10.150.129:8082/api/suratkontrol/datalog", body);
|
||||
const response = await axios.post("http://10.10.123.140:8082/api/suratkontrol/datalog", body);
|
||||
console.log(response.data)
|
||||
return response.data
|
||||
} catch (error) {
|
||||
|
||||
@@ -2,7 +2,7 @@ import axios from "axios";
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
try {
|
||||
const response = await axios.get("http://10.10.150.129:8082/api/subspesialis");
|
||||
const response = await axios.get("http://10.10.123.140:8082/api/subspesialis");
|
||||
// console.log(response.data)
|
||||
return response.data
|
||||
} catch (error) {
|
||||
|
||||
@@ -2,7 +2,7 @@ import axios from "axios";
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
try {
|
||||
const response = await axios.get("http://10.10.150.129:8082/api/suratkontrol");
|
||||
const response = await axios.get("http://10.10.123.140:8082/api/suratkontrol");
|
||||
// console.log(response.data)
|
||||
return response.data
|
||||
} catch (error) {
|
||||
|
||||
@@ -7,8 +7,8 @@ export default defineEventHandler(async (event) => {
|
||||
console.log("masuk")
|
||||
|
||||
try {
|
||||
// const response = await axios.post("http://10.10.150.129:8082/api/suratkontrol/cari", body, {
|
||||
const response = await axios.post("http://10.10.150.129:8082/api/suratkontrol/insert/", body);
|
||||
// const response = await axios.post("http://10.10.123.140:8082/api/suratkontrol/cari", body, {
|
||||
const response = await axios.post("http://10.10.123.140:8082/api/suratkontrol/insert/", body);
|
||||
console.log(response)
|
||||
// return response.data
|
||||
} catch (error) {
|
||||
|
||||
@@ -7,8 +7,8 @@ export default defineEventHandler(async (event) => {
|
||||
console.log("masuk")
|
||||
|
||||
try {
|
||||
const response = await axios.post("http://10.10.150.129:8082/api/suratkontrol/carinew", body)
|
||||
// const response = await axios.post("http://10.10.150.129:8082/api/suratkontrol/insert/", body);
|
||||
const response = await axios.post("http://10.10.123.140:8082/api/suratkontrol/carinew", body)
|
||||
// const response = await axios.post("http://10.10.123.140:8082/api/suratkontrol/insert/", body);
|
||||
// console.log(response)
|
||||
return response.data
|
||||
} catch (error) {
|
||||
|
||||
Reference in New Issue
Block a user