This commit is contained in:
Sergey Lyubka 2022-05-24 19:19:42 +01:00
parent 4f168cf346
commit 88ee415dd1

View File

@ -3564,6 +3564,7 @@ $ cc mongoose.c app.c packed_fs.c -DMG_ENABLE_PACKED_FS=1
```c
struct mg_http_serve_opts opts = {}; // Initialise empty options
opts.fs = &mg_fs_packed; // Use packed filesystem
opts.root_dir = "/"; // Set root directory
mg_http_serve_dir(c, hm, &opts); // Serve directory
```