WalledGardenController.php 756 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\NoCSRFRequired;
  11. use OCP\AppFramework\Http\Attribute\OpenAPI;
  12. use OCP\AppFramework\Http\Attribute\PublicPage;
  13. use OCP\AppFramework\Http\Response;
  14. #[OpenAPI(scope: OpenAPI::SCOPE_IGNORE)]
  15. class WalledGardenController extends Controller {
  16. #[PublicPage]
  17. #[NoCSRFRequired]
  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. }