nextcloud/ocs-provider/index.php
Carl Schwan 39c14c383b
refactor: remove long deprecated IServerContainer methods
Signed-off-by: Carl Schwan <carlschwan@kde.org>
2026-03-10 10:36:35 +01:00

22 lines
496 B
PHP

<?php
/**
* SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
*/
use OCP\App\IAppManager;
use OCP\IRequest;
use OCP\Server;
require_once __DIR__ . '/../lib/base.php';
header('Content-Type: application/json');
$controller = new \OC\OCS\Provider(
'ocs_provider',
Server::get(IRequest::class),
Server::get(IAppManager::class),
);
echo $controller->buildProviderList()->render();