diff --git a/api/helpers.php b/api/helpers.php index 0c210cc..6fd6daa 100644 --- a/api/helpers.php +++ b/api/helpers.php @@ -463,7 +463,7 @@ function runAuth(): void { // Check if public route $isPublic = false; foreach (PUBLIC_ROUTES as $route) { - if (str_contains($path, $route)) { + if (str_contains($path, strtolower($route))) { $isPublic = true; break; }