diff options
author | Joas Schilling <coding@schilljs.com> | 2023-04-25 15:37:10 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2023-04-26 09:15:49 +0200 |
commit | 5ac5d00e2d64f580aadc3257d166c1df4c904313 (patch) | |
tree | 17c2d32d1ab87501fed7c356dcd82c02d21fec83 /lib/Controller/HostedSignalingServerController.php | |
parent | a699d959ec4c6749172ee70d419f0ed90efc80f5 (diff) |
feat(controllers): Migrate server annotations to attributes
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Controller/HostedSignalingServerController.php')
-rw-r--r-- | lib/Controller/HostedSignalingServerController.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/Controller/HostedSignalingServerController.php b/lib/Controller/HostedSignalingServerController.php index cd49296c0..f8e05b439 100644 --- a/lib/Controller/HostedSignalingServerController.php +++ b/lib/Controller/HostedSignalingServerController.php @@ -31,6 +31,7 @@ use OCA\Talk\Exceptions\HostedSignalingServerAPIException; use OCA\Talk\Exceptions\HostedSignalingServerInputException; use OCA\Talk\Service\HostedSignalingServerService; use OCP\AppFramework\Http; +use OCP\AppFramework\Http\Attribute\PublicPage; use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\OCSController; use OCP\Http\Client\IClientService; @@ -63,9 +64,7 @@ class HostedSignalingServerController extends OCSController { $this->hostedSignalingServerService = $hostedSignalingServerService; } - /** - * @PublicPage - */ + #[PublicPage] public function auth(): DataResponse { $storedNonce = $this->config->getAppValue('spreed', 'hosted-signaling-server-nonce', ''); // reset nonce after one request |