get("/", function (array $req, Response $res) { $res->send("Hello World"); }); $app->get("/user", function (array $req, Response $res) { $res->send("user"); }); $app->get("/user/:id", function (array $req, Response $res) { $res->send("user " . $req["params"]["id"]); }); $app->start();