{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/pub/issues/1437","repository_url":"https://api.github.com/repos/dart-lang/pub","labels_url":"https://api.github.com/repos/dart-lang/pub/issues/1437/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/pub/issues/1437/comments","events_url":"https://api.github.com/repos/dart-lang/pub/issues/1437/events","html_url":"https://github.com/dart-lang/pub/pull/1437","id":169503480,"number":1437,"title":"Support simple path rewrites to index.html for angular2","user":{"login":"chalin","id":4140793,"avatar_url":"https://avatars.githubusercontent.com/u/4140793?v=3","gravatar_id":"","url":"https://api.github.com/users/chalin","html_url":"https://github.com/chalin","followers_url":"https://api.github.com/users/chalin/followers","following_url":"https://api.github.com/users/chalin/following{/other_user}","gists_url":"https://api.github.com/users/chalin/gists{/gist_id}","starred_url":"https://api.github.com/users/chalin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chalin/subscriptions","organizations_url":"https://api.github.com/users/chalin/orgs","repos_url":"https://api.github.com/users/chalin/repos","events_url":"https://api.github.com/users/chalin/events{/privacy}","received_events_url":"https://api.github.com/users/chalin/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dart-lang/pub/labels/pub%20serve","name":"pub serve","color":"73A9E5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-08-05T00:21:21Z","updated_at":"2016-08-07T02:01:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/dart-lang/pub/pulls/1437","html_url":"https://github.com/dart-lang/pub/pull/1437","diff_url":"https://github.com/dart-lang/pub/pull/1437.diff","patch_url":"https://github.com/dart-lang/pub/pull/1437.patch"},"body":"Fixes #1374.\r\n\r\nThis commit adds a serve option:<br>\r\n  `pub serve `**`--rewrite-to-index `**_`<path-regexp>`_.<br>\r\nA request that would yield 404 (not found), but whose path matches the regexp, will be directed to `/index.html`.\r\n\r\nThis will be useful while developing Angular 2 Dart apps with routing. In the simplest case, the empty string will match any path:\r\n```\r\npub serve --rewrite-to-index ''\r\n```\r\n\r\n**All 1130 tests pass** (including the newly added test).\r\n\r\ncc @kwalrath @kasperpeulen @zoechi"},"comment":{"url":"https://api.github.com/repos/dart-lang/pub/issues/comments/238058749","html_url":"https://github.com/dart-lang/pub/pull/1437#issuecomment-238058749","issue_url":"https://api.github.com/repos/dart-lang/pub/issues/1437","id":238058749,"user":{"login":"adaojunior","id":4921294,"avatar_url":"https://avatars.githubusercontent.com/u/4921294?v=3","gravatar_id":"","url":"https://api.github.com/users/adaojunior","html_url":"https://github.com/adaojunior","followers_url":"https://api.github.com/users/adaojunior/followers","following_url":"https://api.github.com/users/adaojunior/following{/other_user}","gists_url":"https://api.github.com/users/adaojunior/gists{/gist_id}","starred_url":"https://api.github.com/users/adaojunior/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adaojunior/subscriptions","organizations_url":"https://api.github.com/users/adaojunior/orgs","repos_url":"https://api.github.com/users/adaojunior/repos","events_url":"https://api.github.com/users/adaojunior/events{/privacy}","received_events_url":"https://api.github.com/users/adaojunior/received_events","type":"User","site_admin":false},"created_at":"2016-08-07T02:01:12Z","updated_at":"2016-08-07T02:01:12Z","body":"What if the file is not `index.html` ?, I have a angular application that has a index.html, admin.html and partnet-reports.html. if I'm n ot mistaken there's an issue (feature) to add the possibility of using pub serve from a server application, this way a user would be able to configure rewrites, and proxies."}}
{"actor":{"display_login":"adaojunior"}}