From ff1d45a008d5af7c1b4c41ab8fffbf5af4877644 Mon Sep 17 00:00:00 2001 From: jojo2massol <54369031+jojo2massol@users.noreply.github.com> Date: Tue, 13 Dec 2022 15:33:51 +0100 Subject: [PATCH] Update comment for the path of rest API rest api is available at `/rest` and not `/api/rest` --- 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 fe6f3680..cacd2662 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 -// /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 static void fn(struct mg_connection *c, int ev, void *ev_data, void *fn_data) { if (ev == MG_EV_OPEN) {