mirror of
https://github.com/cesanta/mongoose.git
synced 2025-08-05 21:18:32 +08:00
Fix ESP32 example
This commit is contained in:
parent
40d4c7e410
commit
33666e7d6b
@ -27,7 +27,7 @@ static void cb(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
|
||||
mg_http_reply(c, 200, "", "{\"ram\": %lu}\n", xPortGetFreeHeapSize());
|
||||
} else {
|
||||
struct mg_fs fs = mg_fs_posix;
|
||||
fs.stat = my_stat;
|
||||
fs.st = my_stat;
|
||||
struct mg_http_serve_opts opts = {.root_dir = FS_ROOT, .fs = &fs};
|
||||
mg_http_serve_dir(c, hm, &opts);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user