added unit tests

This commit is contained in:
2026-06-04 21:40:59 +02:00
parent d80a8de559
commit 48a619ee4b
64 changed files with 3807 additions and 33 deletions

View File

@ -8,7 +8,7 @@ if ($method !== 'POST') {
}
$dbPath = QDB_PATH;
$backupDir = __DIR__ . '/../uploads/backups';
$backupDir = QDB_UPLOADS_DIR . '/backups';
if (!file_exists($dbPath)) {
json_error('NOT_FOUND', 'No database to back up', 404);