{"action":"opened","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9812","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9812/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9812/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9812/events","html_url":"https://github.com/yiisoft/yii2/issues/9812","id":109336557,"number":9812,"title":"REST routs formats are inconsistent","user":{"login":"EvgenyOrekhov","id":8045060,"avatar_url":"https://avatars.githubusercontent.com/u/8045060?v=3","gravatar_id":"","url":"https://api.github.com/users/EvgenyOrekhov","html_url":"https://github.com/EvgenyOrekhov","followers_url":"https://api.github.com/users/EvgenyOrekhov/followers","following_url":"https://api.github.com/users/EvgenyOrekhov/following{/other_user}","gists_url":"https://api.github.com/users/EvgenyOrekhov/gists{/gist_id}","starred_url":"https://api.github.com/users/EvgenyOrekhov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvgenyOrekhov/subscriptions","organizations_url":"https://api.github.com/users/EvgenyOrekhov/orgs","repos_url":"https://api.github.com/users/EvgenyOrekhov/repos","events_url":"https://api.github.com/users/EvgenyOrekhov/events{/privacy}","received_events_url":"https://api.github.com/users/EvgenyOrekhov/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-01T16:30:36Z","updated_at":"2015-10-01T16:30:36Z","closed_at":null,"body":"Some components ignore the leading slash in routes, some don't.\r\nThis works:\r\n```php\r\n'urlManager' => [\r\n    'enablePrettyUrl'     => true,\r\n    'enableStrictParsing' => true,\r\n    'showScriptName'      => false,\r\n    'rules'               => [\r\n        '/rest/v1/tasks'  => '/rest/v1/task/index', // note the leading slash in the value\r\n```\r\nThis doesn't work because of the leading slash:\r\n```php\r\n'as authenticator' => [\r\n    'class'  => 'yii\\filters\\auth\\HttpBasicAuth',\r\n    'except' => [\r\n        '/rest/v1/task/options', // note the leading slash\r\n```"}}