mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-10 16:31:44 +00:00
Formatted example
This commit is contained in:
1 parent
c432b783fb
commit
e528093027
1 file changed
+1
@@ -13,6 +13,7 @@ Embedding Mongoose is done in two steps:
|
|||||||
Here's a minimal application `app.c` that embeds mongoose:
|
Here's a minimal application `app.c` that embeds mongoose:
|
||||||
|
|
||||||
#include "mongoose.h"
|
#include "mongoose.h"
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
struct mg_server *server = mg_create_server(NULL);
|
struct mg_server *server = mg_create_server(NULL);
|
||||||
mg_set_option(server, "document_root", "."); // Serve current directory
|
mg_set_option(server, "document_root", "."); // Serve current directory
|
||||||
|
|||||||
Reference in new issue
Block a user