Merge pull request #1920 from jojo2massol/patch-1

Update comment for the path of rest API
This commit is contained in:
Sergio R. Caprile authored and GitHub committed 2022-12-13 12:39:28 -03:00
commit 7ca9f2d5cd
1 file changed
+1 -1
+1 -1
View File
@@ -10,7 +10,7 @@ static const char *s_web_root = ".";
// This RESTful server implements the following endpoints: // This RESTful server implements the following endpoints:
// /websocket - upgrade to Websocket, and implement websocket echo server // /websocket - upgrade to Websocket, and implement websocket echo server
// /api/rest - respond with JSON string {"result": 123} // /rest - respond with JSON string {"result": 123}
// any other URI serves static files from s_web_root // any other URI serves static files from s_web_root
static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) { static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) {
if (ev == MG_EV_OPEN) { if (ev == MG_EV_OPEN) {