{"action":"created","issue":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/769","labels_url":"https://api.github.com/repos/esp8266/Arduino/issues/769/labels{/name}","comments_url":"https://api.github.com/repos/esp8266/Arduino/issues/769/comments","events_url":"https://api.github.com/repos/esp8266/Arduino/issues/769/events","html_url":"https://github.com/esp8266/Arduino/issues/769","id":105961505,"number":769,"title":"how does .serveStatic(...) works?","user":{"login":"Yoshi20","id":1472752,"avatar_url":"https://avatars.githubusercontent.com/u/1472752?v=3","gravatar_id":"","url":"https://api.github.com/users/Yoshi20","html_url":"https://github.com/Yoshi20","followers_url":"https://api.github.com/users/Yoshi20/followers","following_url":"https://api.github.com/users/Yoshi20/following{/other_user}","gists_url":"https://api.github.com/users/Yoshi20/gists{/gist_id}","starred_url":"https://api.github.com/users/Yoshi20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yoshi20/subscriptions","organizations_url":"https://api.github.com/users/Yoshi20/orgs","repos_url":"https://api.github.com/users/Yoshi20/repos","events_url":"https://api.github.com/users/Yoshi20/events{/privacy}","received_events_url":"https://api.github.com/users/Yoshi20/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-11T07:54:24Z","updated_at":"2015-09-11T14:33:44Z","closed_at":null,"body":"I saved index.html in the FS (\"/data/index.html\") and tryed the following functioncall:\r\n\r\nserver.serveStatic(\"/\", SPIFFS, \"/data/index.html\");\r\n\r\nbut it doesn't seems to work.\r\nIs this function still a work in progress or do I do something wrong?"},"comment":{"url":"https://api.github.com/repos/esp8266/Arduino/issues/comments/139562191","html_url":"https://github.com/esp8266/Arduino/issues/769#issuecomment-139562191","issue_url":"https://api.github.com/repos/esp8266/Arduino/issues/769","id":139562191,"user":{"login":"pgollor","id":9283623,"avatar_url":"https://avatars.githubusercontent.com/u/9283623?v=3","gravatar_id":"","url":"https://api.github.com/users/pgollor","html_url":"https://github.com/pgollor","followers_url":"https://api.github.com/users/pgollor/followers","following_url":"https://api.github.com/users/pgollor/following{/other_user}","gists_url":"https://api.github.com/users/pgollor/gists{/gist_id}","starred_url":"https://api.github.com/users/pgollor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pgollor/subscriptions","organizations_url":"https://api.github.com/users/pgollor/orgs","repos_url":"https://api.github.com/users/pgollor/repos","events_url":"https://api.github.com/users/pgollor/events{/privacy}","received_events_url":"https://api.github.com/users/pgollor/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T14:33:44Z","updated_at":"2015-09-11T14:33:44Z","body":"```\r\nvoid ESP8266WebServer::serveStatic(const char* uri, FS& fs, const char* path) {\r\n    _addRequestHandler(new StaticRequestHandler(fs, uri));\r\n}\r\n```\r\n\r\nThis code snippet is out `ESP8266WebServer.cpp`. The function seems to be not finished yet."}}