]>
git.proxmox.com Git - pmg-api.git/blob - PMG/RESTEnvironment.pm
1 package PMG
::RESTEnvironment
;
6 use PVE
::RESTEnvironment
;
8 use PMG
::ClusterConfig
;
10 use base
qw(PVE::RESTEnvironment);
12 # initialize environment - must be called once at program startup
14 my ($class, $type, %params) = @_;
16 $class = ref($class) || $class;
18 my $self = $class->SUPER::init
($type, %params);
25 # init_request - must be called before each RPC request
27 my ($self, %params) = @_;
29 $self->SUPER::init_request
(%params);
31 $self->{cinfo
} = PVE
::INotify
::read_file
("cluster.conf");