Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
cpq committed Nov 11, 2021
1 parent dd34830 commit 2000752
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions examples/esp32/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,9 @@ static void cb(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
if (mg_http_match_uri(hm, "/api/stats")) {
mg_http_reply(c, 200, "", "{\"ram\": %lu}\n", xPortGetFreeHeapSize());
} else {
// mg_http_reply(c, 404, "", "Not found: %d\n", MG_PATH_MAX);
// return;
struct mg_fs fs = mg_fs_posix;
fs.stat = my_stat;
struct mg_http_serve_opts opts = {.root_dir = FS_ROOT, .fs = &fs};
// opts.fs = NULL;
mg_http_serve_dir(c, hm, &opts);
}
}
Expand Down

0 comments on commit 2000752

Please sign in to comment.