{"action":"created","issue":{"url":"https://api.github.com/repos/bcosca/fatfree-core/issues/72","labels_url":"https://api.github.com/repos/bcosca/fatfree-core/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/bcosca/fatfree-core/issues/72/comments","events_url":"https://api.github.com/repos/bcosca/fatfree-core/issues/72/events","html_url":"https://github.com/bcosca/fatfree-core/pull/72","id":94894326,"number":72,"title":"Added support for {@token} syntax in route definition","user":{"login":"nanawel","id":4866761,"avatar_url":"https://avatars.githubusercontent.com/u/4866761?v=3","gravatar_id":"","url":"https://api.github.com/users/nanawel","html_url":"https://github.com/nanawel","followers_url":"https://api.github.com/users/nanawel/followers","following_url":"https://api.github.com/users/nanawel/following{/other_user}","gists_url":"https://api.github.com/users/nanawel/gists{/gist_id}","starred_url":"https://api.github.com/users/nanawel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nanawel/subscriptions","organizations_url":"https://api.github.com/users/nanawel/orgs","repos_url":"https://api.github.com/users/nanawel/repos","events_url":"https://api.github.com/users/nanawel/events{/privacy}","received_events_url":"https://api.github.com/users/nanawel/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-07-14T08:29:48Z","updated_at":"2015-08-04T02:59:38Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bcosca/fatfree-core/pulls/72","html_url":"https://github.com/bcosca/fatfree-core/pull/72","diff_url":"https://github.com/bcosca/fatfree-core/pull/72.diff","patch_url":"https://github.com/bcosca/fatfree-core/pull/72.patch"},"body":"It allows to handle routes like these (line 2-3):\r\n```\r\nGET /=app\\controllers\\IndexController->index\r\nGET /account/@action=app\\controllers\\AccountController->{@action}Action\r\nGET /account/@action/*=app\\controllers\\AccountController->{@action}Action\r\nGET /account_operation/@action=app\\controllers\\Account\\OperationController->@action\r\nGET /account_operation/@action/*=app\\controllers\\Account\\OperationController->@action\r\n```\r\nwhich enables you to add prefix or suffix to the tokens found in the URL in order to generate the final handler method (or class, etc.).\r\n**I needed this more importantly to \"hide\" public methods of the controllers that I didn't want to be reached by URL.** (in my case, only methods ending in \"Action\" can be called)\r\n\r\nIf it's not necessary because of some other cool feature that I didn't know about, I'd be glad to learn :)"},"comment":{"url":"https://api.github.com/repos/bcosca/fatfree-core/issues/comments/127461582","html_url":"https://github.com/bcosca/fatfree-core/pull/72#issuecomment-127461582","issue_url":"https://api.github.com/repos/bcosca/fatfree-core/issues/72","id":127461582,"user":{"login":"bcosca","id":199570,"avatar_url":"https://avatars.githubusercontent.com/u/199570?v=3","gravatar_id":"","url":"https://api.github.com/users/bcosca","html_url":"https://github.com/bcosca","followers_url":"https://api.github.com/users/bcosca/followers","following_url":"https://api.github.com/users/bcosca/following{/other_user}","gists_url":"https://api.github.com/users/bcosca/gists{/gist_id}","starred_url":"https://api.github.com/users/bcosca/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bcosca/subscriptions","organizations_url":"https://api.github.com/users/bcosca/orgs","repos_url":"https://api.github.com/users/bcosca/repos","events_url":"https://api.github.com/users/bcosca/events{/privacy}","received_events_url":"https://api.github.com/users/bcosca/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T02:59:38Z","updated_at":"2015-08-04T02:59:38Z","body":"I'm open to this change, but if we're going with this approach I suggest we use `{{ @token }}` to make it consistent with the rest of the framework."}}