Quellcode durchsuchen

fix other things

gdias vor 1 Woche
Ursprung
Commit
a5db6b8877
2 geänderte Dateien mit 4 neuen und 1 gelöschten Zeilen
  1. 3 0
      log.txt
  2. 1 1
      routes/Dispatcher.php

+ 3 - 0
log.txt

@@ -5,3 +5,6 @@
 [2026-06-09 21:07:57] WARNING: JWT authentication failed {"error":"Expired token"}
 [2026-06-09 21:31:16] INFO: Database connection established {"host":"51.79.79.8","port":"15432","name":"nettown_db"}
 [2026-06-09 21:51:23] INFO: Database connection established {"host":"51.79.79.8","port":"15432","name":"nettown_db"}
+[2026-06-09 21:57:09] INFO: Database connection established {"host":"51.79.79.8","port":"15432","name":"nettown_db"}
+[2026-06-09 22:08:36] WARNING: JWT authentication failed {"error":"Expired token"}
+[2026-06-09 22:08:36] WARNING: JWT authentication failed {"error":"Expired token"}

+ 1 - 1
routes/Dispatcher.php

@@ -59,7 +59,7 @@ final class Dispatcher
         $app->get('/v1/analytics/sentiment/dashboard', $auth, \Controllers\AnalyticsSentimentDashboardController::class);
         $app->get('/v1/personas/overview', $auth, \Controllers\PersonasOverviewController::class);
         $app->get('/v1/evolution/overview', $auth, \Controllers\EvolutionOverviewController::class);
-        $app->get('/v1/executive/dashboard', $auth, \Controllers\ExecutiveDashboardController::class);
+        $app->get('/v1/executive/dashboard', $auth, new RoleMiddleware(Roles::ADMIN), \Controllers\ExecutiveDashboardController::class);
 
         // SLA.
         $app->get('/v1/sla/configs', $auth, \Controllers\SlaConfigsController::class);