| 19 | class ROMFS_Handler : public RequestHandler |
| 20 | { |
| 21 | bool canHandle(HTTPMethod method, String uri) { |
| 22 | if (uri == "/") { |
| 23 | uri = "/index.html"; |
| 24 | } |
| 25 | uri = "web" + uri; |
| 26 | if (ROMFS::exists(uri.c_str())) { |
| 27 | return true; |
| 28 | } |
| 29 | return false; |
| 30 | } |
| 31 | |
| 32 | bool handle(WebServer& server, HTTPMethod requestMethod, String requestUri) { |
| 33 | if (requestUri == "/") { |
nothing calls this directly
no outgoing calls
no test coverage detected