diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-07-16 06:17:05 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-07-16 06:17:05 -0700 |
commit | 5f8111de04a4a914c72a1642722476db4728339c (patch) | |
tree | b7ae766bcb35d53828a1690ae78d9bff179dcbab /FS/FS/cust_pkg | |
parent | c7cc0522832d0e1c056f9bce46dd1b4b5551e612 (diff) |
REST API, RT#28181
Diffstat (limited to 'FS/FS/cust_pkg')
-rw-r--r-- | FS/FS/cust_pkg/API.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/FS/FS/cust_pkg/API.pm b/FS/FS/cust_pkg/API.pm new file mode 100644 index 0000000..f87eed3 --- /dev/null +++ b/FS/FS/cust_pkg/API.pm @@ -0,0 +1,13 @@ +package FS::cust_pkg::API; + +use strict; + +sub API_getinfo { + my $self = shift; + + +{ ( map { $_=>$self->$_ } $self->fields ), + }; + +} + +1; |