diff --git a/plugins/restful/handle.c b/plugins/restful/handle.c index d81bf507..d021db11 100644 --- a/plugins/restful/handle.c +++ b/plugins/restful/handle.c @@ -122,6 +122,12 @@ static struct neu_http_handler cors_handler[] = { { .url = "/api/v2/log/level", }, + { + .url = "/api/v2/log/list", + }, + { + .url = "/api/v2/log/file", + }, { .url = "/api/v2/global/config", }, @@ -489,6 +495,18 @@ static struct neu_http_handler rest_handlers[] = { .url = "/api/v2/log/global", .value.handler = handle_get_global_log_level, }, + { + .method = NEU_HTTP_METHOD_GET, + .type = NEU_HTTP_HANDLER_FUNCTION, + .url = "/api/v2/log/list", + .value.handler = handle_log_list, + }, + { + .method = NEU_HTTP_METHOD_GET, + .type = NEU_HTTP_HANDLER_FUNCTION, + .url = "/api/v2/log/file", + .value.handler = handle_log_file, + }, { .method = NEU_HTTP_METHOD_GET, .type = NEU_HTTP_HANDLER_FUNCTION,