From b7ab634a20546e322ef476090a1a8e36ab2fae99 Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Thu, 15 Jun 2023 16:55:41 +0200 Subject: [PATCH] api: tfa: add missing links for child-routes making this more useable in things like pvesh or the HTML formatter Signed-off-by: Thomas Lamprecht --- src/PVE/API2/TFA.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/PVE/API2/TFA.pm b/src/PVE/API2/TFA.pm index 62b9653..9545842 100644 --- a/src/PVE/API2/TFA.pm +++ b/src/PVE/API2/TFA.pm @@ -176,6 +176,7 @@ __PACKAGE__->register_method ({ description => "A list of the user's TFA entries.", type => 'array', items => $TYPED_TFA_ENTRY_SCHEMA, + links => [ { rel => 'child', href => "{id}" } ], }, code => sub { my ($param) = @_; @@ -300,6 +301,7 @@ __PACKAGE__->register_method ({ }, }, }, + links => [ { rel => 'child', href => "{userid}" } ], }, code => sub { my ($param) = @_; -- 2.39.2