From d9abde7baceba8f5e67534251db35962d29a7bd0 Mon Sep 17 00:00:00 2001 From: fixclean Date: Thu, 12 Feb 2026 08:44:49 +0100 Subject: [PATCH] closes #1 --- app/modules/connections/save.php | 53 -------------------------------- 1 file changed, 53 deletions(-) diff --git a/app/modules/connections/save.php b/app/modules/connections/save.php index fc76a94..dbad99f 100644 --- a/app/modules/connections/save.php +++ b/app/modules/connections/save.php @@ -67,56 +67,3 @@ $_SESSION['success'] = "Verbindung gespeichert"; // ========================= header('Location: ?module=connections&action=list'); exit; - "type": "device_position" | "port_position" | "network_layout" | ... - "entity_id": 123, - "payload": { ... } -} -*/ - -// TODO: Pflichtfelder prüfen -// $type = $data['type'] ?? null; -// $entityId = $data['entity_id'] ?? null; -// $payload = $data['payload'] ?? null; - -// ========================= -// Routing nach Typ -// ========================= - -switch ($type ?? null) { - - case 'device_position': - // TODO: - // - Gerät-ID validieren - // - SVG-Koordinaten speichern - // - ggf. Zoom / Rotation - break; - - case 'port_position': - // TODO: - // - Device-Type-Port-ID - // - Koordinaten relativ zum SVG - break; - - case 'network_layout': - // TODO: - // - Kontext (Standort / Rack) - // - Gerätepositionen - // - Verbindungskurven - break; - - default: - http_response_code(400); - echo json_encode([ - 'error' => 'Unknown save type' - ]); - exit; -} - -// ========================= -// Antwort -// ========================= - -// TODO: Erfolg / Fehler zurückgeben -echo json_encode([ - 'status' => 'ok' -]);