path() . "\n"; echo "Request method: " . $request->method() . "\n"; $router = new \App\Support\Router($request); // Test a simple route $router->get('/api/v1/test', static function($req) { echo "Handler called!\n"; \App\Support\Response::json(['status' => 'ok']); }); $_SERVER['REQUEST_URI'] = '/api/v1/test'; $_SERVER['REQUEST_METHOD'] = 'GET'; $router->dispatch();