feat: complete package 2 delete flows and package 3 port management
This commit is contained in:
@@ -7,6 +7,16 @@
|
||||
|
||||
header('Content-Type: application/json; charset=utf-8');
|
||||
|
||||
$method = $_SERVER['REQUEST_METHOD'] ?? 'GET';
|
||||
if ($method !== 'POST') {
|
||||
http_response_code(405);
|
||||
echo json_encode([
|
||||
'success' => false,
|
||||
'message' => 'Methode nicht erlaubt'
|
||||
]);
|
||||
exit;
|
||||
}
|
||||
|
||||
$locationId = (int)($_POST['id'] ?? $_GET['id'] ?? 0);
|
||||
|
||||
if ($locationId <= 0) {
|
||||
|
||||
Reference in New Issue
Block a user