docker baru
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import { c as defineEventHandler, e as createError } from '../../../_/nitro.mjs';
|
||||
import axios from 'axios';
|
||||
import 'node:http';
|
||||
import 'node:https';
|
||||
import 'node:fs';
|
||||
import 'node:url';
|
||||
import '@iconify/utils';
|
||||
import 'consola/core';
|
||||
|
||||
const index_get = defineEventHandler(async (event) => {
|
||||
try {
|
||||
const response = await axios.get("http://10.10.123.140:8082/api/subspesialis");
|
||||
return response.data;
|
||||
} catch (error) {
|
||||
console.error("Error posting to surat kontrol API:", error);
|
||||
throw createError({
|
||||
statusCode: 500,
|
||||
statusMessage: "Failed to fetch data from surat kontrol API"
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
export { index_get as default };
|
||||
//# sourceMappingURL=index.get.mjs.map
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.get.mjs","sources":["../../../../../../server/api/subspesialis/get/index.get.ts"],"sourcesContent":null,"names":[],"mappings":";;;;;;;;;AAEA,kBAAA,kBAAA,CAAA,OAAA,KAAA,KAAA;AACA,EAAA,IAAA;AACA,IAAA,MAAA,QAAA,GAAA,MAAA,KAAA,CAAA,GAAA,CAAA,4CAAA,CAAA;AAEA,IAAA,OAAA,QAAA,CAAA,IAAA;AAAA,WACA,KAAA,EAAA;AACA,IAAA,OAAA,CAAA,KAAA,CAAA,uCAAA,KAAA,CAAA;AAEA,IAAA,MAAA,WAAA,CAAA;AAAA,MACA,UAAA,EAAA,GAAA;AAAA,MACA,aAAA,EAAA;AAAA,KACA,CAAA;AAAA;AAEA,CAAA,CAAA;;;;"}
|
||||
Reference in New Issue
Block a user