{"action":"closed","issue":{"url":"https://api.github.com/repos/jhthorsen/swagger2/issues/27","labels_url":"https://api.github.com/repos/jhthorsen/swagger2/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/jhthorsen/swagger2/issues/27/comments","events_url":"https://api.github.com/repos/jhthorsen/swagger2/issues/27/events","html_url":"https://github.com/jhthorsen/swagger2/issues/27","id":105114960,"number":27,"title":"Swagger generated routes get autogenerated names by the Mojo Router","user":{"login":"stephan48","id":88050,"avatar_url":"https://avatars.githubusercontent.com/u/88050?v=3","gravatar_id":"","url":"https://api.github.com/users/stephan48","html_url":"https://github.com/stephan48","followers_url":"https://api.github.com/users/stephan48/followers","following_url":"https://api.github.com/users/stephan48/following{/other_user}","gists_url":"https://api.github.com/users/stephan48/gists{/gist_id}","starred_url":"https://api.github.com/users/stephan48/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephan48/subscriptions","organizations_url":"https://api.github.com/users/stephan48/orgs","repos_url":"https://api.github.com/users/stephan48/repos","events_url":"https://api.github.com/users/stephan48/events{/privacy}","received_events_url":"https://api.github.com/users/stephan48/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/jhthorsen/swagger2/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"jhthorsen","id":45729,"avatar_url":"https://avatars.githubusercontent.com/u/45729?v=3","gravatar_id":"","url":"https://api.github.com/users/jhthorsen","html_url":"https://github.com/jhthorsen","followers_url":"https://api.github.com/users/jhthorsen/followers","following_url":"https://api.github.com/users/jhthorsen/following{/other_user}","gists_url":"https://api.github.com/users/jhthorsen/gists{/gist_id}","starred_url":"https://api.github.com/users/jhthorsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhthorsen/subscriptions","organizations_url":"https://api.github.com/users/jhthorsen/orgs","repos_url":"https://api.github.com/users/jhthorsen/repos","events_url":"https://api.github.com/users/jhthorsen/events{/privacy}","received_events_url":"https://api.github.com/users/jhthorsen/received_events","type":"User","site_admin":false},"milestone":null,"comments":0,"created_at":"2015-09-06T20:11:38Z","updated_at":"2015-09-13T13:55:11Z","closed_at":"2015-09-13T13:55:11Z","body":"Example from the Blog test app bundled with Swagger2:\r\n/api             *       api\r\n  +/posts        GET     posts\r\n  +/posts        POST    posts\r\n  +/posts/(:id)  DELETE  postsid\r\n  +/posts/(:id)  PUT     postsid\r\n  +/posts/(:id)  GET     postsid\r\n/                GET\r\n/posts           GET     posts\r\n/posts/create    GET     \"create_post\"\r\n/posts           POST    \"store_post\"\r\n/posts/:id       GET     \"show_post\"\r\n/posts/:id/edit  GET     \"edit_post\"\r\n/posts/:id       PUT     \"update_post\"\r\n/posts/:id       DELETE  \"remove_post\"\r\n/editor          *       editor\r\n\r\nThis trips the code in https://github.com/jhthorsen/swagger2/blob/master/t/blog/lib/Blog.pm#L42\r\n$r->get('/' => sub { shift->redirect_to('posts') });\r\n$r->get('/posts')->to('posts#list');\r\n\r\nLeading to a redirect to /api/posts instead of /posts\r\n\r\nKind Regards,\r\nStephan\r\n\r\n\r\n"}}