From 5aa6c15c76031c4d7ac0ca81ea48be73a1cc1b98 Mon Sep 17 00:00:00 2001 From: "Sergio R. Caprile" Date: Tue, 24 Jan 2023 11:41:51 -0300 Subject: [PATCH] Revert "Update comment for the path of rest API" --- examples/websocket-server/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/websocket-server/main.c b/examples/websocket-server/main.c index cacd2662..fe6f3680 100644 --- a/examples/websocket-server/main.c +++ b/examples/websocket-server/main.c @@ -10,7 +10,7 @@ static const char *s_web_root = "."; // This RESTful server implements the following endpoints: // /websocket - upgrade to Websocket, and implement websocket echo server -// /rest - respond with JSON string {"result": 123} +// /api/rest - respond with JSON string {"result": 123} // 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) { if (ev == MG_EV_OPEN) {