logapiByMethod

This commit is contained in:
2025-07-16 13:15:53 +07:00
parent dbdd6d7e47
commit 9a8dc24f23
4 changed files with 152 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
import axios from "axios"
export default defineEventHandler(async (event) => {
const body = await readBody(event)
try {
const response = await axios.post("http://10.10.123.140:8082/api/suratkontrol/datalogmethod",body)
return response.data
// console.log("ini data response",response.data)
} catch (error) {
throw createError({
statusCode: 500,
statusMessage: "Failed to fetch data log api by method",
})
}
})