0, 'path' => '/', 'domain' => $config['session_domain'] ?? '', 'secure' => $isHttps, 'httponly' => true, 'samesite' => $sameSite, ]); // Important: Start session BEFORE any output session_start(); // Now check if we can read the JSON body $raw = file_get_contents('php://input'); echo "Raw input: '$raw'\n"; \App\Support\Database::configure($config); $request = new \App\Support\Request(); $input = $request->input(); echo "Parsed input: " . json_encode($input) . "\n"; echo "Request path: " . $request->path() . "\n"; echo "Request method: " . $request->method() . "\n"; $auth = new \App\Http\Controllers\AuthController(); $router = new \App\Support\Router($request); $router->post('/api/v1/auth/login', [$auth, 'login']); $router->dispatch();