1
0

WalledGardenController.php 668 B

1234567891011121314151617181920212223242526
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OC\Core\Controller;
  7. use OCP\AppFramework\Controller;
  8. use OCP\AppFramework\Http;
  9. use OCP\AppFramework\Http\Attribute\FrontpageRoute;
  10. use OCP\AppFramework\Http\Attribute\OpenAPI;
  11. use OCP\AppFramework\Http\Response;
  12. #[OpenAPI(scope: OpenAPI::SCOPE_IGNORE)]
  13. class WalledGardenController extends Controller {
  14. /**
  15. * @PublicPage
  16. * @NoCSRFRequired
  17. */
  18. #[FrontpageRoute(verb: 'GET', url: '/204')]
  19. public function get(): Response {
  20. $resp = new Response();
  21. $resp->setStatus(Http::STATUS_NO_CONTENT);
  22. return $resp;
  23. }
  24. }