{"action":"opened","issue":{"url":"https://api.github.com/repos/slimphp/Slim/issues/2024","repository_url":"https://api.github.com/repos/slimphp/Slim","labels_url":"https://api.github.com/repos/slimphp/Slim/issues/2024/labels{/name}","comments_url":"https://api.github.com/repos/slimphp/Slim/issues/2024/comments","events_url":"https://api.github.com/repos/slimphp/Slim/issues/2024/events","html_url":"https://github.com/slimphp/Slim/issues/2024","id":183997697,"number":2024,"title":"Not able to access url","user":{"login":"night-cypher","id":12860854,"avatar_url":"https://avatars.githubusercontent.com/u/12860854?v=3","gravatar_id":"","url":"https://api.github.com/users/night-cypher","html_url":"https://github.com/night-cypher","followers_url":"https://api.github.com/users/night-cypher/followers","following_url":"https://api.github.com/users/night-cypher/following{/other_user}","gists_url":"https://api.github.com/users/night-cypher/gists{/gist_id}","starred_url":"https://api.github.com/users/night-cypher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/night-cypher/subscriptions","organizations_url":"https://api.github.com/users/night-cypher/orgs","repos_url":"https://api.github.com/users/night-cypher/repos","events_url":"https://api.github.com/users/night-cypher/events{/privacy}","received_events_url":"https://api.github.com/users/night-cypher/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-19T15:36:48Z","updated_at":"2016-10-19T15:36:48Z","closed_at":null,"body":"This route not able to access by the url without **'/'.**\r\n$app->get('**/user/upload**', function ($request, $response, $args) {\r\n\r\n    $sth = getConnection()->prepare(\"SELECT * FROM user ORDER BY id\");\r\n    $sth->execute();\r\n    $todos = $sth->fetchAll(PDO::FETCH_ASSOC);\r\n    return $response->withJson($todos);\r\n});\r\n\r\nWhile this is work when add **'/'** on it.\r\n$app->get('**/user/upload/**', function ($request, $response, $args) {\r\n\r\n    $sth = getConnection()->prepare(\"SELECT * FROM user ORDER BY id\");\r\n    $sth->execute();\r\n    $todos = $sth->fetchAll(PDO::FETCH_ASSOC);\r\n    return $response->withJson($todos);\r\n});\r\n\r\nCan i know why?"}}
{"actor":{"display_login":"night-cypher"}}