Hi,
I’m having some weird issues with slim routing. I have this 3 simple routes.
$app->get('/', function (Request $request, Response $response, array $args) {
die('root');
});
$app->get('/foo', function (Request $request, Response $response, array $args) {
die('foo');
});
$app->get('/{name}', function (Request $request, Response $response, array $args) {
var_dump($args);die;
});
If I point may browser to http://localhost:8001
I get root
If I point may browser to http://localhost:8001/foo
I get root
If I point may browser to http://localhost:8001/bar
I get root
When I hit http://localhost:8001/foo
I should be getting foo
and when I hit http://localhost:8001/bar
I should be getting the args dump
Is my assumption correct or I’m seeing this incorrectly?