mirror of
https://github.com/nextcloud/server.git
synced 2024-12-28 07:58:42 +00:00
c57c3c1573
Signed-off-by: provokateurin <kate@provokateurin.de>
27 lines
756 B
PHP
27 lines
756 B
PHP
<?php
|
|
/**
|
|
* SPDX-FileCopyrightText: 2017 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
namespace OC\Core\Controller;
|
|
|
|
use OCP\AppFramework\Controller;
|
|
use OCP\AppFramework\Http;
|
|
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
|
|
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
|
|
use OCP\AppFramework\Http\Attribute\OpenAPI;
|
|
use OCP\AppFramework\Http\Attribute\PublicPage;
|
|
use OCP\AppFramework\Http\Response;
|
|
|
|
#[OpenAPI(scope: OpenAPI::SCOPE_IGNORE)]
|
|
class WalledGardenController extends Controller {
|
|
#[PublicPage]
|
|
#[NoCSRFRequired]
|
|
#[FrontpageRoute(verb: 'GET', url: '/204')]
|
|
public function get(): Response {
|
|
$resp = new Response();
|
|
$resp->setStatus(Http::STATUS_NO_CONTENT);
|
|
return $resp;
|
|
}
|
|
}
|