{"action":"created","issue":{"url":"https://api.github.com/repos/redstone-dart/redstone/issues/48","labels_url":"https://api.github.com/repos/redstone-dart/redstone/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/redstone-dart/redstone/issues/48/comments","events_url":"https://api.github.com/repos/redstone-dart/redstone/issues/48/events","html_url":"https://github.com/redstone-dart/redstone/issues/48","id":49280909,"number":48,"title":"How to respond with an HTML","user":{"login":"cgarciae","id":5862228,"avatar_url":"https://avatars.githubusercontent.com/u/5862228?v=3","gravatar_id":"","url":"https://api.github.com/users/cgarciae","html_url":"https://github.com/cgarciae","followers_url":"https://api.github.com/users/cgarciae/followers","following_url":"https://api.github.com/users/cgarciae/following{/other_user}","gists_url":"https://api.github.com/users/cgarciae/gists{/gist_id}","starred_url":"https://api.github.com/users/cgarciae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgarciae/subscriptions","organizations_url":"https://api.github.com/users/cgarciae/orgs","repos_url":"https://api.github.com/users/cgarciae/repos","events_url":"https://api.github.com/users/cgarciae/events{/privacy}","received_events_url":"https://api.github.com/users/cgarciae/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":14,"created_at":"2014-11-18T19:16:36Z","updated_at":"2015-04-27T15:16:43Z","closed_at":"2014-12-24T21:30:39Z","body":"Is there an easy way to respond with an HTML file in the `web` folder? I most of the example I see respond `json` or `plain text`, but there must be an easy way to respond the start page."},"comment":{"url":"https://api.github.com/repos/redstone-dart/redstone/issues/comments/96698287","html_url":"https://github.com/redstone-dart/redstone/issues/48#issuecomment-96698287","issue_url":"https://api.github.com/repos/redstone-dart/redstone/issues/48","id":96698287,"user":{"login":"cgarciae","id":5862228,"avatar_url":"https://avatars.githubusercontent.com/u/5862228?v=3","gravatar_id":"","url":"https://api.github.com/users/cgarciae","html_url":"https://github.com/cgarciae","followers_url":"https://api.github.com/users/cgarciae/followers","following_url":"https://api.github.com/users/cgarciae/following{/other_user}","gists_url":"https://api.github.com/users/cgarciae/gists{/gist_id}","starred_url":"https://api.github.com/users/cgarciae/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cgarciae/subscriptions","organizations_url":"https://api.github.com/users/cgarciae/orgs","repos_url":"https://api.github.com/users/cgarciae/repos","events_url":"https://api.github.com/users/cgarciae/events{/privacy}","received_events_url":"https://api.github.com/users/cgarciae/received_events","type":"User","site_admin":false},"created_at":"2015-04-27T15:16:43Z","updated_at":"2015-04-27T15:16:43Z","body":"Your code above is not needed. The shelf static middlewear will match files from the directory you asigned.\r\n\r\nFor example, if you set `web` as the parent folder and `index.html` as the default asset, given this folder structure\r\n```\r\n- web\r\n  index.html\r\n  - images\r\n    icon1.png\r\n    icon2.png\r\n```\r\nThe route to `icon1.png` is `http://host/images/icon1.png`. Its somewhat intuitive."}}