From df3b5eb94caabc4f46023f8736cd8d37450a23cb Mon Sep 17 00:00:00 2001 From: Ilia Rostovtsev Date: Wed, 12 Jan 2022 00:36:52 +0300 Subject: [PATCH] Add ability to return a list of other Webmin servers as JSON --- servers/index-json.cgi | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 servers/index-json.cgi diff --git a/servers/index-json.cgi b/servers/index-json.cgi new file mode 100755 index 000000000..3b4f2c9ff --- /dev/null +++ b/servers/index-json.cgi @@ -0,0 +1,10 @@ +#!/usr/local/bin/perl +# Return a list of other Webmin servers as JSON + +use strict; +use warnings; +require './servers-lib.pl'; + +# Get servers and apply search +my @servers = &list_servers_sorted(1); +print_json(\@servers);