mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-18 10:59:45 +00:00
Add separate userdata for each http endpoint hdlr
PUBLISHED_FROM=29a204c2c7f35724b6f1e8435edb94869da2362c
This commit is contained in:
1 parent
0fc3370859
commit
bf7dd7ac63
4 files changed
+86
-54
No files matched your search
@@ -98,7 +98,7 @@ int main(void) {
|
||||
mg_mgr_init(&mgr, NULL);
|
||||
nc = mg_bind(&mgr, s_http_port, ev_handler);
|
||||
|
||||
mg_register_http_endpoint(nc, "/upload", handle_upload);
|
||||
mg_register_http_endpoint(nc, "/upload", handle_upload MG_UD_ARG(NULL));
|
||||
// Set up HTTP server parameters
|
||||
mg_set_protocol_http_websocket(nc);
|
||||
|
||||
|
||||
Reference in new issue
Block a user