Skip to content

Commit 4ca8666

Browse files
committed
ss
1 parent 22fdad1 commit 4ca8666

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

examples/SimpleServer/SimpleServer.ino

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -760,6 +760,11 @@ websocat: error running
760760
#endif
761761

762762
server.onNotFound(notFound);
763+
server.onRequestBody([](AsyncWebServerRequest* request, uint8_t* data, size_t len, size_t index, size_t total) {
764+
if (request->url() == "/game_log" && request->method() == HTTP_GET) {
765+
request->send(200, "text/plain", "Here are the logs...");
766+
}
767+
});
763768

764769
server.begin();
765770
}

0 commit comments

Comments
 (0)