MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / rootHandler

Function rootHandler

src/webInterface.cpp:583–590  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

581}
582
583esp_err_t rootHandler(httpd_req_t *req) {
584 if (req->method == HTTP_POST) {
585 streamMultipartUpload(req);
586 return ESP_OK;
587 }
588 if (checkUserWebAuth(req, true)) serveWebUIFile(req, "text/html", true, index_html, index_html_size);
589 return ESP_OK;
590}
591
592esp_err_t systemInfoHandler(httpd_req_t *req) {
593 char response_body[300];

Callers

nothing calls this directly

Calls 3

streamMultipartUploadFunction · 0.85
checkUserWebAuthFunction · 0.85
serveWebUIFileFunction · 0.85

Tested by

no test coverage detected