mirror of
https://git.sr.ht/~iwakuralain/text0Nly
synced 2025-07-27 15:36:11 +00:00
whoopsie
This commit is contained in:
parent
ea69fc799a
commit
0845621f0e
@ -23,8 +23,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
|
||||
$messages = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
echo json_encode(['messages' => $messages]);
|
||||
} catch (Exception $e) {
|
||||
error_log("API Error: " . $e->getMessage());
|
||||
http_response_code(500);
|
||||
echo json_encode(['error' => 'Server error']);
|
||||
echo json_encode(['error' => 'Server error', 'details' => $e->getMessage()]);
|
||||
}
|
||||
exit;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user