diff options
author | provokateurin <kate@provokateurin.de> | 2024-01-18 16:23:36 +0100 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-01-18 16:23:36 +0100 |
commit | c5808d0d107929f6db757bc2f71fbb5d7f7a5a6b (patch) | |
tree | d228088ed4d9b66ab4aacddd1c9b6c2747299973 /apps/federatedfilesharing | |
parent | b64ab5fba86f55e59ebb8983a143d640d0c6a7a1 (diff) | |
download | nextcloud-server-c5808d0d107929f6db757bc2f71fbb5d7f7a5a6b.tar.gz nextcloud-server-c5808d0d107929f6db757bc2f71fbb5d7f7a5a6b.zip |
refactor: Configure OpenAPI scopes
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'apps/federatedfilesharing')
-rw-r--r-- | apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php | 2 | ||||
-rw-r--r-- | apps/federatedfilesharing/lib/Controller/RequestHandlerController.php | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php b/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php index 7e73f89ad41..196dab03b0c 100644 --- a/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php +++ b/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php @@ -36,6 +36,7 @@ use OCA\FederatedFileSharing\AddressHandler; use OCA\FederatedFileSharing\FederatedShareProvider; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; +use OCP\AppFramework\Http\Attribute\OpenAPI; use OCP\AppFramework\Http\JSONResponse; use OCP\Constants; use OCP\Federation\ICloudIdManager; @@ -56,6 +57,7 @@ use Psr\Log\LoggerInterface; * * @package OCA\FederatedFileSharing\Controller */ +#[OpenAPI(scope: OpenAPI::SCOPE_FEDERATION)] class MountPublicLinkController extends Controller { /** * MountPublicLinkController constructor. diff --git a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php index 5855d98f34e..d5b931d0b49 100644 --- a/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php +++ b/apps/federatedfilesharing/lib/Controller/RequestHandlerController.php @@ -32,6 +32,7 @@ use OCA\FederatedFileSharing\FederatedShareProvider; use OCA\FederatedFileSharing\Notifications; use OCP\App\IAppManager; use OCP\AppFramework\Http; +use OCP\AppFramework\Http\Attribute\OpenAPI; use OCP\AppFramework\OCS\OCSBadRequestException; use OCP\AppFramework\OCS\OCSException; use OCP\AppFramework\OCSController; @@ -50,6 +51,7 @@ use OCP\Share; use OCP\Share\Exceptions\ShareNotFound; use Psr\Log\LoggerInterface; +#[OpenAPI(scope: OpenAPI::SCOPE_FEDERATION)] class RequestHandlerController extends OCSController { /** @var FederatedShareProvider */ |