Who has used the slim,URL parameter?

the following code:

require "vendor/autoload.php";

$app->get("/hello[/{name}]", function ($request, $response, $args) {
    $response->write("Hello, " . $args["name"]);
    return $response;
})->setArgument("name", "World!");

$app = new Slim\App();
$app->get("/books/:one", function ($one) {
    print_r((array)$one);
});

Why do I visit http://localhost/books?ss=e prompts for Page Not Found. However, there is no problem visiting http://localhost/helo/friends

Jul.22,2021

did not see the {name} used by others, and it is the third parameter in the $args array

.
Menu