Files
shape3d.it/public/api/printers.php
2026-01-23 23:45:16 +01:00

8 lines
272 B
PHP
Executable File

<?php
// public/api/printers.php
header('Content-Type: application/json; charset=utf-8');
require __DIR__ . '/_db.php';
require_once __DIR__ . '/../../tools/printers.php';
$printers = tools_fetch_active_printers($pdo);
echo json_encode($printers, JSON_UNESCAPED_UNICODE);