{"action":"closed","issue":{"url":"https://api.github.com/repos/jooby-project/jooby/issues/897","repository_url":"https://api.github.com/repos/jooby-project/jooby","labels_url":"https://api.github.com/repos/jooby-project/jooby/issues/897/labels{/name}","comments_url":"https://api.github.com/repos/jooby-project/jooby/issues/897/comments","events_url":"https://api.github.com/repos/jooby-project/jooby/issues/897/events","html_url":"https://github.com/jooby-project/jooby/issues/897","id":266285257,"number":897,"title":"router: add path() operator","user":{"login":"jknack","id":1301129,"avatar_url":"https://avatars0.githubusercontent.com/u/1301129?v=4","gravatar_id":"","url":"https://api.github.com/users/jknack","html_url":"https://github.com/jknack","followers_url":"https://api.github.com/users/jknack/followers","following_url":"https://api.github.com/users/jknack/following{/other_user}","gists_url":"https://api.github.com/users/jknack/gists{/gist_id}","starred_url":"https://api.github.com/users/jknack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jknack/subscriptions","organizations_url":"https://api.github.com/users/jknack/orgs","repos_url":"https://api.github.com/users/jknack/repos","events_url":"https://api.github.com/users/jknack/events{/privacy}","received_events_url":"https://api.github.com/users/jknack/received_events","type":"User","site_admin":false},"labels":[{"id":139423487,"url":"https://api.github.com/repos/jooby-project/jooby/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/jooby-project/jooby/milestones/48","html_url":"https://github.com/jooby-project/jooby/milestone/48","labels_url":"https://api.github.com/repos/jooby-project/jooby/milestones/48/labels","id":2533753,"number":48,"title":"1.2.0","description":"","creator":{"login":"jknack","id":1301129,"avatar_url":"https://avatars0.githubusercontent.com/u/1301129?v=4","gravatar_id":"","url":"https://api.github.com/users/jknack","html_url":"https://github.com/jknack","followers_url":"https://api.github.com/users/jknack/followers","following_url":"https://api.github.com/users/jknack/following{/other_user}","gists_url":"https://api.github.com/users/jknack/gists{/gist_id}","starred_url":"https://api.github.com/users/jknack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jknack/subscriptions","organizations_url":"https://api.github.com/users/jknack/orgs","repos_url":"https://api.github.com/users/jknack/repos","events_url":"https://api.github.com/users/jknack/events{/privacy}","received_events_url":"https://api.github.com/users/jknack/received_events","type":"User","site_admin":false},"open_issues":5,"closed_issues":62,"state":"open","created_at":"2017-05-21T15:53:58Z","updated_at":"2017-10-18T23:25:47Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2017-10-17T21:29:35Z","updated_at":"2017-10-18T23:25:47Z","closed_at":"2017-10-18T23:25:47Z","author_association":"OWNER","body":"Which allow us to add routes with a common path:\r\n\r\n```java\r\n{\r\n   path(\"/api/pets\", () -> {\r\n      get(()-> pets());\r\n      get(\"/:id\", req -> pet(req.param(\"id\").intValue()));\r\n   });\r\n}\r\n```\r\n\r\nIt works for composing routes:\r\n\r\n```java\r\n{\r\n   path(\"/app\", () -> {\r\n      use(\"/foo\", new Foo());\r\n      use(\"/bar\", new Bar());\r\n   });\r\n}\r\n```\r\n"}}
{"actor":{"display_login":"jknack"}}