]> git.proxmox.com Git - pmg-api.git/blobdiff - src/PMG/API2/Config.pm
Add API2 module for PBS configuration
[pmg-api.git] / src / PMG / API2 / Config.pm
index d4a9679ea0e9d5abf73039ed10d8c885d7c75695..e11eb3fd1b53bb5c1eacf9f7897db775aacb19c5 100644 (file)
@@ -25,6 +25,7 @@ use PMG::API2::Fetchmail;
 use PMG::API2::DestinationTLSPolicy;
 use PMG::API2::DKIMSign;
 use PMG::API2::SACustom;
+use PMG::API2::PBS::Remote;
 
 use base qw(PVE::RESTHandler);
 
@@ -93,6 +94,11 @@ __PACKAGE__->register_method({
     path => 'customscores',
 });
 
+__PACKAGE__->register_method ({
+    subclass => "PMG::API2::PBS::Remote",
+    path => 'pbs',
+});
+
 __PACKAGE__->register_method ({
     name => 'index', 
     path => '',
@@ -131,6 +137,7 @@ __PACKAGE__->register_method ({
        push @$res, { section => 'regextest' };
        push @$res, { section => 'tlspolicy' };
        push @$res, { section => 'dkim' };
+       push @$res, { section => 'pbs' };
 
        return $res;
     }});