{"action":"created","issue":{"url":"https://api.github.com/repos/facebook/augmented-traffic-control/issues/233","labels_url":"https://api.github.com/repos/facebook/augmented-traffic-control/issues/233/labels{/name}","comments_url":"https://api.github.com/repos/facebook/augmented-traffic-control/issues/233/comments","events_url":"https://api.github.com/repos/facebook/augmented-traffic-control/issues/233/events","html_url":"https://github.com/facebook/augmented-traffic-control/pull/233","id":126755654,"number":233,"title":"Serve assets from directory.","user":{"login":"zfjagann","id":794008,"avatar_url":"https://avatars.githubusercontent.com/u/794008?v=3","gravatar_id":"","url":"https://api.github.com/users/zfjagann","html_url":"https://github.com/zfjagann","followers_url":"https://api.github.com/users/zfjagann/followers","following_url":"https://api.github.com/users/zfjagann/following{/other_user}","gists_url":"https://api.github.com/users/zfjagann/gists{/gist_id}","starred_url":"https://api.github.com/users/zfjagann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zfjagann/subscriptions","organizations_url":"https://api.github.com/users/zfjagann/orgs","repos_url":"https://api.github.com/users/zfjagann/repos","events_url":"https://api.github.com/users/zfjagann/events{/privacy}","received_events_url":"https://api.github.com/users/zfjagann/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/facebook/augmented-traffic-control/labels/atc_api","name":"atc_api","color":"fbca04"},{"url":"https://api.github.com/repos/facebook/augmented-traffic-control/labels/CLA%20Signed","name":"CLA Signed","color":"009900"}],"state":"open","locked":false,"assignee":{"login":"chantra","id":24572,"avatar_url":"https://avatars.githubusercontent.com/u/24572?v=3","gravatar_id":"","url":"https://api.github.com/users/chantra","html_url":"https://github.com/chantra","followers_url":"https://api.github.com/users/chantra/followers","following_url":"https://api.github.com/users/chantra/following{/other_user}","gists_url":"https://api.github.com/users/chantra/gists{/gist_id}","starred_url":"https://api.github.com/users/chantra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chantra/subscriptions","organizations_url":"https://api.github.com/users/chantra/orgs","repos_url":"https://api.github.com/users/chantra/repos","events_url":"https://api.github.com/users/chantra/events{/privacy}","received_events_url":"https://api.github.com/users/chantra/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/facebook/augmented-traffic-control/milestones/4","html_url":"https://github.com/facebook/augmented-traffic-control/milestones/2.0","labels_url":"https://api.github.com/repos/facebook/augmented-traffic-control/milestones/4/labels","id":1405258,"number":4,"title":"2.0","description":"ATC 2.0 fully rewritten in golang.","creator":{"login":"zfjagann","id":794008,"avatar_url":"https://avatars.githubusercontent.com/u/794008?v=3","gravatar_id":"","url":"https://api.github.com/users/zfjagann","html_url":"https://github.com/zfjagann","followers_url":"https://api.github.com/users/zfjagann/followers","following_url":"https://api.github.com/users/zfjagann/following{/other_user}","gists_url":"https://api.github.com/users/zfjagann/gists{/gist_id}","starred_url":"https://api.github.com/users/zfjagann/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zfjagann/subscriptions","organizations_url":"https://api.github.com/users/zfjagann/orgs","repos_url":"https://api.github.com/users/zfjagann/repos","events_url":"https://api.github.com/users/zfjagann/events{/privacy}","received_events_url":"https://api.github.com/users/zfjagann/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":28,"state":"open","created_at":"2015-11-10T19:33:54Z","updated_at":"2016-01-14T22:10:27Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-01-14T21:47:16Z","updated_at":"2016-01-14T23:57:24Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/facebook/augmented-traffic-control/pulls/233","html_url":"https://github.com/facebook/augmented-traffic-control/pull/233","diff_url":"https://github.com/facebook/augmented-traffic-control/pull/233.diff","patch_url":"https://github.com/facebook/augmented-traffic-control/pull/233.patch"},"body":"Added the `--assets` flag to `atc_api` that allows you to specify a directory from which static and dynamic resources can be read.\r\n\r\nIndex page should be located at `$DIR/index.html.tmpl` and is a golang template expanded with [this struct](https://github.com/facebook/augmented-traffic-control/blob/golang/src/api/assets.go#L51).\r\n\r\nFixes #198 \r\n\r\n    $ atc_api --help\r\n    usage: atc_api [<flags>]\r\n    \r\n    Flags:\r\n        ...\r\n        --assets=ASSETS          location of asset files on disk\r\n\r\n    $ atc_api --assets=static/ ..."},"comment":{"url":"https://api.github.com/repos/facebook/augmented-traffic-control/issues/comments/171821330","html_url":"https://github.com/facebook/augmented-traffic-control/pull/233#issuecomment-171821330","issue_url":"https://api.github.com/repos/facebook/augmented-traffic-control/issues/233","id":171821330,"user":{"login":"chantra","id":24572,"avatar_url":"https://avatars.githubusercontent.com/u/24572?v=3","gravatar_id":"","url":"https://api.github.com/users/chantra","html_url":"https://github.com/chantra","followers_url":"https://api.github.com/users/chantra/followers","following_url":"https://api.github.com/users/chantra/following{/other_user}","gists_url":"https://api.github.com/users/chantra/gists{/gist_id}","starred_url":"https://api.github.com/users/chantra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chantra/subscriptions","organizations_url":"https://api.github.com/users/chantra/orgs","repos_url":"https://api.github.com/users/chantra/repos","events_url":"https://api.github.com/users/chantra/events{/privacy}","received_events_url":"https://api.github.com/users/chantra/received_events","type":"User","site_admin":false},"created_at":"2016-01-14T23:57:24Z","updated_at":"2016-01-14T23:57:24Z","body":"@zfjagann I assume you tested both with --assets and without and the ui still work as expected.\r\nIf that is the case, please merge it."}}