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);