[pmg-devel] [PATCH pmg-api v3 07/11] add API2/DKIMSignDomains endpoints

Stoiko Ivanov s.ivanov at proxmox.com
Fri Oct 18 16:53:54 CEST 2019


currently working like RelayDomains

Signed-off-by: Stoiko Ivanov <s.ivanov at proxmox.com>
---
 src/Makefile                    |  1 +
 src/PMG/API2/DKIMSignDomains.pm | 19 +++++++++++++++++++
 2 files changed, 20 insertions(+)
 create mode 100644 src/PMG/API2/DKIMSignDomains.pm

diff --git a/src/Makefile b/src/Makefile
index 44f4a4b..aa8c644 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -119,6 +119,7 @@ LIBSOURCES =				\
 	PMG/API2/LDAP.pm		\
 	PMG/API2/DestinationTLSPolicy.pm\
 	PMG/API2/Domains.pm		\
+	PMG/API2/DKIMSignDomains.pm	\
 	PMG/API2/Fetchmail.pm		\
 	PMG/API2/Users.pm		\
 	PMG/API2/Transport.pm		\
diff --git a/src/PMG/API2/DKIMSignDomains.pm b/src/PMG/API2/DKIMSignDomains.pm
new file mode 100644
index 0000000..15523a5
--- /dev/null
+++ b/src/PMG/API2/DKIMSignDomains.pm
@@ -0,0 +1,19 @@
+package PMG::API2::DKIMSignDomains;
+
+use strict;
+use warnings;
+
+use PVE::RESTHandler;
+
+use PMG::API2::Domains;
+
+use base qw(PVE::RESTHandler);
+
+my @domain_args = ('dkimdomains', 'DKIM-sign', 'domains', 0);
+
+__PACKAGE__->register_method(PMG::API2::Domains::index_method(@domain_args));
+__PACKAGE__->register_method(PMG::API2::Domains::create_method(@domain_args));
+__PACKAGE__->register_method(PMG::API2::Domains::read_method(@domain_args));
+__PACKAGE__->register_method(PMG::API2::Domains::write_method(@domain_args));
+__PACKAGE__->register_method(PMG::API2::Domains::delete_method(@domain_args));
+
-- 
2.20.1




More information about the pmg-devel mailing list