]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
rec: move the rpz stats to a different url
authorPieter Lexis <pieter.lexis@powerdns.com>
Fri, 23 Mar 2018 11:02:42 +0000 (12:02 +0100)
committerPieter Lexis <pieter.lexis@powerdns.com>
Fri, 23 Mar 2018 11:02:42 +0000 (12:02 +0100)
pdns/ws-recursor.cc

index ce382a4ceb1b27e63eab90d163620226e673ce2e..7e8e99468429eeb7c10b804cf39420b7fa2f99a9 100644 (file)
@@ -383,7 +383,7 @@ static void apiServerCacheFlush(HttpRequest* req, HttpResponse* resp) {
   });
 }
 
-static void apiServerRPZ(HttpRequest* req, HttpResponse* resp) {
+static void apiServerRPZStats(HttpRequest* req, HttpResponse* resp) {
   if(req->method != "GET")
     throw HttpMethodNotAllowedException();
 
@@ -456,7 +456,7 @@ RecursorWebServer::RecursorWebServer(FDMultiplexer* fdm)
   d_ws->registerApiHandler("/api/v1/servers/localhost/cache/flush", &apiServerCacheFlush);
   d_ws->registerApiHandler("/api/v1/servers/localhost/config/allow-from", &apiServerConfigAllowFrom);
   d_ws->registerApiHandler("/api/v1/servers/localhost/config", &apiServerConfig);
-  d_ws->registerApiHandler("/api/v1/servers/localhost/rpz", &apiServerRPZ);
+  d_ws->registerApiHandler("/api/v1/servers/localhost/rpzstatistics", &apiServerRPZStats);
   d_ws->registerApiHandler("/api/v1/servers/localhost/search-log", &apiServerSearchLog);
   d_ws->registerApiHandler("/api/v1/servers/localhost/search-data", &apiServerSearchData);
   d_ws->registerApiHandler("/api/v1/servers/localhost/statistics", &apiServerStatistics);