From 9e621cca11ae3cf1d54356a8910d9205fadbf0ee Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Thu, 13 Feb 2025 04:05:18 +0000 Subject: Add the new JSON-RPC module to compliment the XMLRPC one. --- data/modules.example.conf | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'data') diff --git a/data/modules.example.conf b/data/modules.example.conf index 604f05c43..bfc1643ac 100644 --- a/data/modules.example.conf +++ b/data/modules.example.conf @@ -785,11 +785,29 @@ module { name = "sasl" } title = "Anope IRC Services" } +/* + * jsonrpc + * + * Allows remote applications (websites) to execute queries in real time to retrieve data from Anope. + * By itself this module does nothing, but allows other modules (rpc_main) to receive and send JSON-RPC queries. + * + * IMPORTANT: this can not be loaded at the same time as the xmlrpc module. + */ +#module +{ + name = "jsonrpc" + + /* Web service to use. Requires httpd. */ + server = "httpd/main" +} + /* * xmlrpc * * Allows remote applications (websites) to execute queries in real time to retrieve data from Anope. * By itself this module does nothing, but allows other modules (rpc_main) to receive and send XMLRPC queries. + * + * IMPORTANT: this can not be loaded at the same time as the jsonrpc module. */ #module { -- cgit