This commit is contained in:
2025-11-17 23:50:23 +01:00
parent 07cac3e3e5
commit 5279b0d34d
7 changed files with 339 additions and 1 deletions

6
public/api/printers.php Executable file
View File

@@ -0,0 +1,6 @@
<?php
// public/api/printers.php
header('Content-Type: application/json; charset=utf-8');
require __DIR__ . '/_db.php';
$stmt = $pdo->query("SELECT * FROM printers WHERE is_active = 1 ORDER BY name");
echo json_encode($stmt->fetchAll(), JSON_UNESCAPED_UNICODE);