mirror of
https://github.com/nextcloud/server.git
synced 2025-01-30 22:37:01 +00:00
c3354e9c84
fix(settings): define a 'heartbeat' route, so SecurityHeaders can handle redirected root
17 lines
434 B
PHP
17 lines
434 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-FileCopyrightText: 2012-2016 ownCloud, Inc.
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
/** @var $this OCP\Route\IRouter */
|
|
// Core ajax actions
|
|
// Routing
|
|
$this->create('core_ajax_update', '/core/ajax/update.php')
|
|
->actionInclude('core/ajax/update.php');
|
|
|
|
$this->create('heartbeat', '/heartbeat')->get();
|