Untie dash.c from packed fs

This commit is contained in:
cpq
2026-05-03 08:40:24 +01:00
parent c9f89166f4
commit 5a2e42ae25
5 changed files with 12 additions and 10 deletions
@@ -190,6 +190,7 @@ void mg_dash_init(struct mg_mgr *mgr) {
// Require authentication
dash.authenticate = authenticate;
mg_mem_files = mg_packed_files;
mg_http_listen(mgr, MG_HTTP_ADDR, mg_dash_ev_handler, &dash);
}
@@ -38,6 +38,7 @@ static struct mg_field_set field_set_status = {
void mg_dash_init(struct mg_mgr *mgr) {
static struct mg_dash dash; // Important: keep it static!
MG_DASH_ADD_FIELD_SET(&dash, &field_set_status);
mg_mem_files = mg_packed_files;
mg_http_listen(mgr, MG_HTTP_ADDR, mg_dash_ev_handler, &dash);
}