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

Function registerHandler

src/webInterface.cpp:940–947  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

938}
939
940void registerHandler(const char *uri, httpd_method_t method, esp_err_t (*handler)(httpd_req_t *)) {
941 httpd_uri_t route = {};
942 route.uri = uri;
943 route.method = method;
944 route.handler = handler;
945 route.user_ctx = nullptr;
946 httpd_register_uri_handler(server, &route);
947}
948
949void configureWebServer() {
950 ensurePersistedSessionLoaded();

Callers 1

configureWebServerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected