<?php
// 调试路由注册
require_once 'api/api_router.php';

class DebugRouter extends ApiRouter {
    public function getRoutes() {
        return $this->routes;
    }
}

$router = new DebugRouter();
$routes = $router->getRoutes();

echo "已注册的路由:\n";
foreach ($routes as $key => $route) {
    echo "$key -> {$route['handler']}\n";
}

echo "\n=== 检查自动化相关路由 ===\n";
$autoRoutes = array_filter($routes, function($key) {
    return strpos($key, 'auto') !== false;
}, ARRAY_FILTER_USE_KEY);

foreach ($autoRoutes as $key => $route) {
    echo "$key -> {$route['handler']}\n";
}
?>