* Handle any custom fields here */
| 61 | * Handle any custom fields here |
| 62 | */ |
| 63 | String getValue(const char* name) |
| 64 | { |
| 65 | if(FS("webpage") == name) { |
| 66 | return "https://github.com/SmingHub/Sming"; |
| 67 | } |
| 68 | |
| 69 | if(FS("request-count") == name) { |
| 70 | return String(requestCount); // Doesn't require escaping |
| 71 | } |
| 72 | |
| 73 | return nullptr; |
| 74 | } |
| 75 | |
| 76 | void onFile(HttpRequest& request, HttpResponse& response) |
| 77 | { |