getRouteCollector()->getRoutes() as $route) { foreach ($route->getMethods() as $method) { $routes[] = [ 'method' => $method, 'pattern' => $route->getPattern() ]; } } echo "=== Registered Routes ===\n\n"; foreach ($routes as $route) { echo "{$route['method']} {$route['pattern']}\n"; } echo "\n=== Testing Specific Routes ===\n"; $testRoutes = [ '/health', '/auth/v1/login', '/retribusi/v1/frontend/locations', '/retribusi/v1/dashboard/summary', '/retribusi/v1/dashboard/daily', '/retribusi/v1/realtime/snapshot', ]; foreach ($testRoutes as $testRoute) { $found = false; foreach ($routes as $route) { // Simple pattern matching $pattern = str_replace(['{', '}'], ['', ''], $route['pattern']); if (strpos($testRoute, $pattern) === 0 || $route['pattern'] === $testRoute) { $found = true; break; } } echo ($found ? '✅' : '❌') . " {$testRoute}\n"; }