mirror of
https://git.proxmox.com/git/pve-access-control
synced 2025-08-16 08:28:27 +00:00
add dummy API for login page
This commit is contained in:
parent
26361123df
commit
39e4e36348
@ -206,6 +206,18 @@ my $compute_api_permission = sub {
|
|||||||
return $res;
|
return $res;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
__PACKAGE__->register_method ({
|
||||||
|
name => 'get_ticket',
|
||||||
|
path => 'ticket',
|
||||||
|
method => 'GET',
|
||||||
|
permissions => { user => 'world' },
|
||||||
|
description => "Dummy. Useful for formaters which want to priovde a login page.",
|
||||||
|
parameters => {
|
||||||
|
additionalProperties => 0,
|
||||||
|
},
|
||||||
|
returns => { type => "null" },
|
||||||
|
code => sub { return undef; }});
|
||||||
|
|
||||||
__PACKAGE__->register_method ({
|
__PACKAGE__->register_method ({
|
||||||
name => 'create_ticket',
|
name => 'create_ticket',
|
||||||
path => 'ticket',
|
path => 'ticket',
|
||||||
|
Loading…
Reference in New Issue
Block a user