Add debug logs
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<?php
|
||||
// index.php
|
||||
|
||||
ini_set('display_errors', 1);
|
||||
ini_set('display_startup_errors', 1);
|
||||
error_reporting(E_ALL);
|
||||
|
||||
// --- HEADERS CORS (Indispensables pour ton site et ton appli mobile) ---
|
||||
header("Access-Control-Allow-Origin: *");
|
||||
header("Content-Type: application/json; charset=UTF-8");
|
||||
@@ -93,7 +97,7 @@ switch ($route) {
|
||||
$userController->unlink($data);
|
||||
} else { http_response_code(405); }
|
||||
break;
|
||||
|
||||
|
||||
case 'add-movie':
|
||||
if ($method === 'POST') {
|
||||
$data['user_id'] = getAuthenticatedUserId($jwt_secret);
|
||||
|
||||
Reference in New Issue
Block a user