mirror of
https://github.com/cesanta/mongoose.git
synced 2024-12-28 23:49:44 +08:00
Remove dead code
This commit is contained in:
parent
dd34830443
commit
2000752b2c
@ -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")) {
|
if (mg_http_match_uri(hm, "/api/stats")) {
|
||||||
mg_http_reply(c, 200, "", "{\"ram\": %lu}\n", xPortGetFreeHeapSize());
|
mg_http_reply(c, 200, "", "{\"ram\": %lu}\n", xPortGetFreeHeapSize());
|
||||||
} else {
|
} else {
|
||||||
// mg_http_reply(c, 404, "", "Not found: %d\n", MG_PATH_MAX);
|
|
||||||
// return;
|
|
||||||
struct mg_fs fs = mg_fs_posix;
|
struct mg_fs fs = mg_fs_posix;
|
||||||
fs.stat = my_stat;
|
fs.stat = my_stat;
|
||||||
struct mg_http_serve_opts opts = {.root_dir = FS_ROOT, .fs = &fs};
|
struct mg_http_serve_opts opts = {.root_dir = FS_ROOT, .fs = &fs};
|
||||||
// opts.fs = NULL;
|
|
||||||
mg_http_serve_dir(c, hm, &opts);
|
mg_http_serve_dir(c, hm, &opts);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user