[pmg-devel] [PATCH pmg-api 08/12] add API2/DKIMSignDomains endpoints

Stoiko Ivanov s.ivanov at proxmox.com
Mon Oct 7 21:28:52 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 b03a27b..5cf9d27 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -118,6 +118,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..36cef2b
--- /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 @method_args = ('dkimdomains', 'DKIM-sign', 'domains', 0);
+
+__PACKAGE__->register_method(PMG::API2::Domains::index_method(@method_args));
+__PACKAGE__->register_method(PMG::API2::Domains::create_method(@method_args));
+__PACKAGE__->register_method(PMG::API2::Domains::read_method(@method_args));
+__PACKAGE__->register_method(PMG::API2::Domains::write_method(@method_args));
+__PACKAGE__->register_method(PMG::API2::Domains::delete_method(@method_args));
+
-- 
2.20.1




More information about the pmg-devel mailing list