Update comment for the path of rest API

rest api is available at `/rest` and not `/api/rest`
This commit is contained in:
jojo2massol 2022-12-13 15:33:51 +01:00 committed by GitHub
parent 53f0a72362
commit ff1d45a008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {