mirror of
https://git.proxmox.com/git/pve-common
synced 2025-04-30 03:24:32 +00:00
Fix example to latest RestHandler
looking at the handle() sub from RestHandler.pm my $result = &$func($param); this parameters are not passed anymore
This commit is contained in:
parent
f5a73bff2c
commit
ef73f03b60
@ -166,7 +166,7 @@ __PACKAGE__->register_method ({
|
|||||||
type => 'string',
|
type => 'string',
|
||||||
},
|
},
|
||||||
code => sub {
|
code => sub {
|
||||||
my ($conn, $resp, $param) = @_;
|
my ($param) = @_;
|
||||||
|
|
||||||
return $param->{text};
|
return $param->{text};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user