aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/WalledGardenController.php
diff options
context:
space:
mode:
authorprovokateurin <kate@provokateurin.de>2024-01-10 12:35:44 +0100
committerprovokateurin <kate@provokateurin.de>2024-02-21 12:07:50 +0100
commit2c51933b6bc5e8f2633114e9acc493fb72a314d7 (patch)
tree43100b132f7e9cd4e899edf0584884c7fa9f0cbc /core/Controller/WalledGardenController.php
parent0117cd26940f2b0dcfd92ccf663bcf8853437193 (diff)
downloadnextcloud-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/WalledGardenController.php')
-rw-r--r--core/Controller/WalledGardenController.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/Controller/WalledGardenController.php b/core/Controller/WalledGardenController.php
index 2ae91135b1d..e5d8edd9083 100644
--- a/core/Controller/WalledGardenController.php
+++ b/core/Controller/WalledGardenController.php
@@ -26,6 +26,7 @@ namespace OC\Core\Controller;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http;
+use OCP\AppFramework\Http\Attribute\FrontpageRoute;
use OCP\AppFramework\Http\Attribute\OpenAPI;
use OCP\AppFramework\Http\Response;
@@ -35,6 +36,7 @@ class WalledGardenController extends Controller {
* @PublicPage
* @NoCSRFRequired
*/
+ #[FrontpageRoute(verb: 'GET', url: '/204')]
public function get(): Response {
$resp = new Response();
$resp->setStatus(Http::STATUS_NO_CONTENT);