This commit is contained in:
Sergey Lyubka committed 2022-05-26 20:25:20 +01:00
1 parent cfaca604f5
commit 6b7f14c69d
2 files changed
+386 -2

No files matched your search

+2 -1
View File
@@ -3633,7 +3633,6 @@ This makes it possible to serve files on devices with no
filesystem. Even on devices with a filesystem, packing some files like Web UI
can be beneficial to be resilient to filesystem errors.
<img src="images/packed.svg" alt="packed filesystem" />
In order to use packed filesystem do the following:
@@ -3652,6 +3651,8 @@ $ ./pack index.html style.css > packed_fs.c
$ cc mongoose.c app.c packed_fs.c -DMG_ENABLE_PACKED_FS=1
```
<img src="images/packed.svg" alt="packed filesystem" />
4. In your application code:
```c
struct mg_http_serve_opts opts = {}; // Initialise empty options