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

.
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e47311-44c02.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e47311-44c02.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?