{"action":"created","issue":{"url":"https://api.github.com/repos/leocavalcante/siler/issues/104","repository_url":"https://api.github.com/repos/leocavalcante/siler","labels_url":"https://api.github.com/repos/leocavalcante/siler/issues/104/labels{/name}","comments_url":"https://api.github.com/repos/leocavalcante/siler/issues/104/comments","events_url":"https://api.github.com/repos/leocavalcante/siler/issues/104/events","html_url":"https://github.com/leocavalcante/siler/issues/104","id":343265276,"node_id":"MDU6SXNzdWUzNDMyNjUyNzY=","number":104,"title":"Ressource show.php will be called for /create","user":{"login":"anken","id":979096,"node_id":"MDQ6VXNlcjk3OTA5Ng==","avatar_url":"https://avatars3.githubusercontent.com/u/979096?v=4","gravatar_id":"","url":"https://api.github.com/users/anken","html_url":"https://github.com/anken","followers_url":"https://api.github.com/users/anken/followers","following_url":"https://api.github.com/users/anken/following{/other_user}","gists_url":"https://api.github.com/users/anken/gists{/gist_id}","starred_url":"https://api.github.com/users/anken/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anken/subscriptions","organizations_url":"https://api.github.com/users/anken/orgs","repos_url":"https://api.github.com/users/anken/repos","events_url":"https://api.github.com/users/anken/events{/privacy}","received_events_url":"https://api.github.com/users/anken/received_events","type":"User","site_admin":false},"labels":[{"id":492852835,"node_id":"MDU6TGFiZWw0OTI4NTI4MzU=","url":"https://api.github.com/repos/leocavalcante/siler/labels/question","name":"question","color":"cc317c","default":true},{"id":492852838,"node_id":"MDU6TGFiZWw0OTI4NTI4Mzg=","url":"https://api.github.com/repos/leocavalcante/siler/labels/wontfix","name":"wontfix","color":"ffffff","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-20T22:29:42Z","updated_at":"2018-07-23T01:05:09Z","closed_at":"2018-07-23T01:05:09Z","author_association":"NONE","body":"Hello,\r\nIn a route resource, the path \"`/create`\" will also call show.php because it will match \"`/{id}`\".\r\nYou have to either \"`exit();`\" in create.php, or \"`if (\"create\" == $params['id']) { return; }`\" in show.php.\r\nAny idea to make it work without the workarouds ?"},"comment":{"url":"https://api.github.com/repos/leocavalcante/siler/issues/comments/406911960","html_url":"https://github.com/leocavalcante/siler/issues/104#issuecomment-406911960","issue_url":"https://api.github.com/repos/leocavalcante/siler/issues/104","id":406911960,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjkxMTk2MA==","user":{"login":"leocavalcante","id":183722,"node_id":"MDQ6VXNlcjE4MzcyMg==","avatar_url":"https://avatars3.githubusercontent.com/u/183722?v=4","gravatar_id":"","url":"https://api.github.com/users/leocavalcante","html_url":"https://github.com/leocavalcante","followers_url":"https://api.github.com/users/leocavalcante/followers","following_url":"https://api.github.com/users/leocavalcante/following{/other_user}","gists_url":"https://api.github.com/users/leocavalcante/gists{/gist_id}","starred_url":"https://api.github.com/users/leocavalcante/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leocavalcante/subscriptions","organizations_url":"https://api.github.com/users/leocavalcante/orgs","repos_url":"https://api.github.com/users/leocavalcante/repos","events_url":"https://api.github.com/users/leocavalcante/events{/privacy}","received_events_url":"https://api.github.com/users/leocavalcante/received_events","type":"User","site_admin":false},"created_at":"2018-07-23T01:05:09Z","updated_at":"2018-07-23T01:05:09Z","author_association":"OWNER","body":"Well, sorry about that, it isn't indeed what you would expect, since usually frameworks implements routers+controllers and bla-bla-bla, but from Siler's nature that is the expected behavior and `exit()` or conditions are the proper solutions.\r\n\r\nWhy is that? This is how you can chain/pipe multiple behavior at you request. Siler is meant to functionally handle each HTTP request as if it is plumbing inside a Stream, so you have to explicitly close/cancel the Stream with such behavior like `exit()` or filter this \"Stream\" with some condition (the `if`  case)."}}
{"actor":{"display_login":"leocavalcante"}}