asd
This commit is contained in:
@@ -2,5 +2,6 @@
|
||||
// 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);
|
||||
require_once __DIR__ . '/../../tools/printers.php';
|
||||
$printers = tools_fetch_active_printers($pdo);
|
||||
echo json_encode($printers, JSON_UNESCAPED_UNICODE);
|
||||
|
||||
Reference in New Issue
Block a user