Comment "not found" as it causes the NG web interface to show an error when receiving something unexpected for still undefined handlers. To be reverted later.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER 2019-10-31 19:08:15 +01:00
parent 900f265d2d
commit 8ca18e6577
No known key found for this signature in database
GPG Key ID: 00135ACBD90B28DD
1 changed files with 2 additions and 2 deletions

View File

@ -104,13 +104,13 @@ static int api_handler(struct mg_connection *conn, void *ignored)
ret = api_stats_query_types(conn);
}
/******************************** not found ******************************/
else
/* else
{
cJSON *json = JSON_NEW_OBJ();
JSON_OBJ_REF_STR(json, "status", "requested path is not available");
JSON_OBJ_REF_STR(json, "path", request->local_uri);
JSON_SENT_OBJECT(json);
}
}*/
return ret;
}