Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Make (push) Successful in 10s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-CMake (push) Successful in 12s
Prepare Build and Testing executable binary / Prepare-Build-Testing-With-Meson (push) Successful in 12s
9 lines
250 B
C
9 lines
250 B
C
#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);
|
|
} |