1, "name" => "Jamie Barton", "email" => "jamie@notrab.dev", ]; $user->get("/", function ($c) use ($userData) { return $c->json($userData); }); $user->get("/:id", function ($c) use ($userData) { $id = (int) $c->req->param("id"); if ($id !== $userData["id"]) { return $c->json(["error" => "User not found"], 404); } return $c->json($userData); }); $app->get("/", function ($c) { return $c->html("