From 1a33b9c2bd25b5fe364e4ba3c4701a8dbde7252f Mon Sep 17 00:00:00 2001 From: fengzero Date: Fri, 22 May 2026 07:47:57 +0000 Subject: [PATCH] Revert "rm unused log file api" This reverts commit ec959ab9cd5086a668bd4e7c1cb6ad77d0b9283a. --- plugins/restful/handle.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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,