mirror of
https://github.com/cesanta/mongoose.git
synced 2025-07-26 07:06:15 +08:00
docs
This commit is contained in:
parent
4f168cf346
commit
88ee415dd1
@ -3564,6 +3564,7 @@ $ cc mongoose.c app.c packed_fs.c -DMG_ENABLE_PACKED_FS=1
|
|||||||
```c
|
```c
|
||||||
struct mg_http_serve_opts opts = {}; // Initialise empty options
|
struct mg_http_serve_opts opts = {}; // Initialise empty options
|
||||||
opts.fs = &mg_fs_packed; // Use packed filesystem
|
opts.fs = &mg_fs_packed; // Use packed filesystem
|
||||||
|
opts.root_dir = "/"; // Set root directory
|
||||||
mg_http_serve_dir(c, hm, &opts); // Serve directory
|
mg_http_serve_dir(c, hm, &opts); // Serve directory
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user