added config and tls
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Has been cancelled
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Has been cancelled

This commit is contained in:
wt committed 2025-08-29 17:46:58 +07:00
1 parent 28655e7b46
commit 4c7a156723
10 files changed
+274 -10

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
#include "static.h"
#include "config.h"
void root_handler(struct mg_connection *c, struct mg_http_message *hm) {
struct mg_http_serve_opts opts = {.root_dir = cm_get_parameter_as_string(config, "web")};
mg_http_serve_dir(c, hm, &opts);
}