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/NavigationController.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/NavigationController.php')
-rw-r--r-- | core/Controller/NavigationController.php | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/Controller/NavigationController.php b/core/Controller/NavigationController.php index 0996b41042e..7b651e6ec70 100644 --- a/core/Controller/NavigationController.php +++ b/core/Controller/NavigationController.php @@ -25,6 +25,7 @@ namespace OC\Core\Controller; use OCA\Core\ResponseDefinitions; use OCP\AppFramework\Http; +use OCP\AppFramework\Http\Attribute\ApiRoute; use OCP\AppFramework\Http\DataResponse; use OCP\AppFramework\OCSController; use OCP\INavigationManager; @@ -56,6 +57,7 @@ class NavigationController extends OCSController { * 200: Apps navigation returned * 304: No apps navigation changed */ + #[ApiRoute(verb: 'GET', url: '/navigation/apps', root: '/core')] public function getAppsNavigation(bool $absolute = false): DataResponse { $navigation = $this->navigationManager->getAll(); if ($absolute) { @@ -83,6 +85,7 @@ class NavigationController extends OCSController { * 200: Apps navigation returned * 304: No apps navigation changed */ + #[ApiRoute(verb: 'GET', url: '/navigation/settings', root: '/core')] public function getSettingsNavigation(bool $absolute = false): DataResponse { $navigation = $this->navigationManager->getAll('settings'); if ($absolute) { |