mirror of
https://github.com/ntop/ntopng.git
synced 2026-05-21 01:54:34 +00:00
Removed old metrics/ (unused) endpoint
This commit is contained in:
parent
2f0ba125da
commit
27cf048ca6
1 changed files with 3 additions and 6 deletions
|
|
@ -1265,13 +1265,10 @@ static int handle_lua_request(struct mg_connection *conn) {
|
|||
if(original_uri) request_info->uri = original_uri;
|
||||
return(0);
|
||||
} else {
|
||||
if(strcmp(request_info->uri, "/metrics") == 0)
|
||||
snprintf(path, sizeof(path), "%s/lua/metrics.lua",
|
||||
httpserver->get_scripts_dir());
|
||||
else if(strncmp(request_info->uri, "/scripts/", 9) == 0)
|
||||
/* TODO: change the path name from scripts to something else, scripts is already used */
|
||||
if(strncmp(request_info->uri, "/scripts/", 9) == 0)
|
||||
/* TODO: change the path name from scripts to something else, scripts is already used */
|
||||
snprintf(path, sizeof(path), "%s/scripts/%s",
|
||||
ntop->get_scripts_dir(), request_info->uri + 9);
|
||||
ntop->get_scripts_dir(), request_info->uri + 9);
|
||||
else
|
||||
snprintf(path, sizeof(path), "%s%s%s",
|
||||
httpserver->get_scripts_dir(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue