logapiByMethod
This commit is contained in:
15
server/api/satu_rssa/logapiByMethod/index.post.ts
Normal file
15
server/api/satu_rssa/logapiByMethod/index.post.ts
Normal 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",
|
||||
})
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user