Add ability to return a list of other Webmin servers as JSON

This commit is contained in:
Ilia Rostovtsev
2022-01-12 00:36:52 +03:00
parent 5a508eb0e9
commit df3b5eb94c

10
servers/index-json.cgi Executable file
View File

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