]> granicus.if.org Git - pdns/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>
Mon, 26 Mar 2018 09:14:57 +0000 (11:14 +0200)
(cherry picked from commit 64c9da8c1b373bc55ceb30b4d97c57fded2a43f0)

pdns/ws-recursor.cc

index 5774ac88e23bb6f6e66caf0407fd2ef3a2bf632a..7b2c9bc85cea8e0a570f7afe27f74faf79dbac83 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);