mirror of
https://github.com/OpenSquawk/OpenSquawk
synced 2026-08-12 04:15:39 +08:00
add bridge endpoint dummy
This commit is contained in:
12
server/api/service/bridge/data.post.ts
Normal file
12
server/api/service/bridge/data.post.ts
Normal 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
|
||||||
|
})
|
||||||
Reference in New Issue
Block a user