From 7de35eceb91c19ef8a161563c7b80acc08034e79 Mon Sep 17 00:00:00 2001 From: Thies Mueller <> Date: Tue, 17 Jun 2025 16:19:27 +0200 Subject: [PATCH] change endpoint & type --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index 21ed213..6d850fa 100644 --- a/index.php +++ b/index.php @@ -9,7 +9,7 @@ function fetch_api($url) { return $json ? json_decode($json, true) : []; } -$messages = fetch_api("https://api.sat.regattatech.de/api/v1/messages"); +$messages = fetch_api("https://api.sat.regattatech.de/api/v1/message"); $resultsData = fetch_api("https://api.sat.regattatech.de/api/v1/results/current/"); $rennplanData = fetch_api("https://api.sat.regattatech.de/api/v1/rennplan/current/"); @@ -31,7 +31,7 @@ function render_message_box($message) { $typeMap = [ 'info' => 'success', 'warning' => 'warning', - 'danger' => 'danger' + 'error' => 'danger' ]; $type = $typeMap[$message['type']] ?? 'secondary'; return "";