diff options
author | provokateurin <kate@provokateurin.de> | 2024-01-10 12:35:44 +0100 |
---|---|---|
committer | provokateurin <kate@provokateurin.de> | 2024-02-21 12:07:50 +0100 |
commit | 2c51933b6bc5e8f2633114e9acc493fb72a314d7 (patch) | |
tree | 43100b132f7e9cd4e899edf0584884c7fa9f0cbc /core/Controller/OCMController.php | |
parent | 0117cd26940f2b0dcfd92ccf663bcf8853437193 (diff) | |
download | nextcloud-server-2c51933b6bc5e8f2633114e9acc493fb72a314d7.tar.gz nextcloud-server-2c51933b6bc5e8f2633114e9acc493fb72a314d7.zip |
refactor(core): Switch to attribute based routing
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'core/Controller/OCMController.php')
-rw-r--r-- | core/Controller/OCMController.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Controller/OCMController.php b/core/Controller/OCMController.php index 03a8c0d8e4f..4fa03e67c4f 100644 --- a/core/Controller/OCMController.php +++ b/core/Controller/OCMController.php @@ -29,6 +29,7 @@ namespace OC\Core\Controller; use Exception; use OCP\AppFramework\Controller; use OCP\AppFramework\Http; +use OCP\AppFramework\Http\Attribute\FrontpageRoute; use OCP\AppFramework\Http\DataResponse; use OCP\Capabilities\ICapability; use OCP\IConfig; @@ -64,6 +65,7 @@ class OCMController extends Controller { * 200: OCM Provider details returned * 500: OCM not supported */ + #[FrontpageRoute(verb: 'GET', url: '/ocm-provider/')] public function discovery(): DataResponse { try { $cap = Server::get( |