]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Fix neural controller API paths
authorVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 13 Jan 2026 16:07:24 +0000 (16:07 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Tue, 13 Jan 2026 16:07:24 +0000 (16:07 +0000)
rules/controller/neural.lua

index 601e5128445aa6c1c26199784d086b1939e1f657..4c1e3da6a20664ff20116d14ccd059e0f30a3831 100644 (file)
@@ -139,7 +139,7 @@ local function handle_config(task, conn, req_params)
     local r = {
       requires_scan = requires_scan,
       providers = {},
-      recommended_path = requires_scan and '/checkv2' or '/controller/neural/learn_message',
+      recommended_path = requires_scan and '/checkv2' or '/plugins/neural/learn_message',
       settings = {},
     }
 
@@ -399,7 +399,7 @@ return {
   },
   status = {
     handler = handle_status,
-    enable = false,
+    enable = true,
     need_task = false,
   },
   train = {