mirror of
https://git.proxmox.com/git/pve-manager
synced 2025-08-04 03:03:45 +00:00
plug new ClusterConfig API at /cluster/config
This commit is contained in:
parent
2b9e88286e
commit
ac04fb558b
@ -15,6 +15,7 @@ use PVE::API2Tools;
|
||||
use PVE::API2::Backup;
|
||||
use PVE::API2::HAConfig;
|
||||
use PVE::HA::Config;
|
||||
use PVE::API2::ClusterConfig;
|
||||
use JSON;
|
||||
use PVE::RESTHandler;
|
||||
use PVE::RPCEnvironment;
|
||||
@ -24,6 +25,11 @@ use PVE::API2::Firewall::Cluster;
|
||||
|
||||
use base qw(PVE::RESTHandler);
|
||||
|
||||
__PACKAGE__->register_method ({
|
||||
subclass => "PVE::API2::ClusterConfig",
|
||||
path => 'config',
|
||||
});
|
||||
|
||||
__PACKAGE__->register_method ({
|
||||
subclass => "PVE::API2::Firewall::Cluster",
|
||||
path => 'firewall',
|
||||
@ -82,6 +88,7 @@ __PACKAGE__->register_method ({
|
||||
{ name => 'status' },
|
||||
{ name => 'nextid' },
|
||||
{ name => 'firewall' },
|
||||
{ name => 'config' },
|
||||
];
|
||||
|
||||
return $result;
|
||||
|
Loading…
Reference in New Issue
Block a user