{"action":"created","issue":{"url":"https://api.github.com/repos/paulcbetts/refit/issues/140","labels_url":"https://api.github.com/repos/paulcbetts/refit/issues/140/labels{/name}","comments_url":"https://api.github.com/repos/paulcbetts/refit/issues/140/comments","events_url":"https://api.github.com/repos/paulcbetts/refit/issues/140/events","html_url":"https://github.com/paulcbetts/refit/issues/140","id":65851691,"number":140,"title":"Constants is not working with Get attribute","user":{"login":"hamzamayet","id":1067605,"avatar_url":"https://avatars.githubusercontent.com/u/1067605?v=3","gravatar_id":"","url":"https://api.github.com/users/hamzamayet","html_url":"https://github.com/hamzamayet","followers_url":"https://api.github.com/users/hamzamayet/followers","following_url":"https://api.github.com/users/hamzamayet/following{/other_user}","gists_url":"https://api.github.com/users/hamzamayet/gists{/gist_id}","starred_url":"https://api.github.com/users/hamzamayet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hamzamayet/subscriptions","organizations_url":"https://api.github.com/users/hamzamayet/orgs","repos_url":"https://api.github.com/users/hamzamayet/repos","events_url":"https://api.github.com/users/hamzamayet/events{/privacy}","received_events_url":"https://api.github.com/users/hamzamayet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-04-02T06:26:17Z","updated_at":"2015-04-02T06:39:34Z","closed_at":null,"body":"using System.Threading.Tasks;\r\nusing Refit;\r\n\r\npublic interface IUser\r\n    {\r\n\r\n        // This works fine\r\n        [Refit.Get(\"/api/users\")]\r\n        Task<User> GetUsers();\r\n\r\n\r\n        // ERROR (If i use constant in Get it throws an error)\r\n        //[Refit.Get(Constants.RouteNames.GetUsers)]\r\n        //Task<User> GetUsers();\r\n\r\n    }"},"comment":{"url":"https://api.github.com/repos/paulcbetts/refit/issues/comments/88771101","html_url":"https://github.com/paulcbetts/refit/issues/140#issuecomment-88771101","issue_url":"https://api.github.com/repos/paulcbetts/refit/issues/140","id":88771101,"user":{"login":"bennor","id":1063280,"avatar_url":"https://avatars.githubusercontent.com/u/1063280?v=3","gravatar_id":"","url":"https://api.github.com/users/bennor","html_url":"https://github.com/bennor","followers_url":"https://api.github.com/users/bennor/followers","following_url":"https://api.github.com/users/bennor/following{/other_user}","gists_url":"https://api.github.com/users/bennor/gists{/gist_id}","starred_url":"https://api.github.com/users/bennor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bennor/subscriptions","organizations_url":"https://api.github.com/users/bennor/orgs","repos_url":"https://api.github.com/users/bennor/repos","events_url":"https://api.github.com/users/bennor/events{/privacy}","received_events_url":"https://api.github.com/users/bennor/received_events","type":"User","site_admin":false},"created_at":"2015-04-02T06:39:34Z","updated_at":"2015-04-02T06:39:34Z","body":":joy: I looked into this before and allowing constants will either run the risk of detecting _non-Refit_ attributes as Refit ones or be really nasty to implement.\r\n\r\nI can have a look at this, but I'm not sure what the value in moving your routes to a file full of constants is anyway? Wouldn't it be better to have them displayed there next to the method so you don't have to jump between files to figure out what the route actually is?"}}