diff --git a/mix.php b/mix.php index 444382e..2c67caa 100644 --- a/mix.php +++ b/mix.php @@ -29,8 +29,13 @@ if ($_SERVER['REQUEST_METHOD'] === 'PUT') { if (isset($data['mix']) && $data['mix'] != "") { $playcount = new Playcount($data['mix'], $db); $playcount->updatePlaycount(); + echo json_encode(['success' => true]); + } else { + echo json_encode(['error' => 'No mix provided']); } + exit; // Stop further output } + require_once 'includes/header.php'; ?>