move data post endpoint

This commit is contained in:
itsrubberduck
2025-09-24 15:54:40 +02:00
parent f9f78efeb9
commit 8c5edf2361

View File

@@ -0,0 +1,12 @@
import { defineEventHandler, readBody } from 'h3'
export default defineEventHandler(async (event) => {
// Body einlesen
const body = await readBody(event)
// Alles in der Server-Konsole ausgeben
console.log('MSFS Telemetry:', body)
// Leere 204-Antwort zurückgeben
event.node.res.statusCode = 204
})