Server IP : 184.154.167.98 / Your IP : 18.116.63.107 Web Server : Apache System : Linux pink.dnsnetservice.com 4.18.0-553.22.1.lve.1.el8.x86_64 #1 SMP Tue Oct 8 15:52:54 UTC 2024 x86_64 User : puertode ( 1767) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/puertode/public_html/nextcloud/apps/gallery/lib/Controller/ |
Upload File : |
<?php /** * Nextcloud - Gallery * * This file is licensed under the Affero General Public License version 3 or * later. See the COPYING file. * * @author Olivier Paroz <galleryapps@oparoz.com> * * @copyright Olivier Paroz 2017 */ namespace OCA\Gallery\Controller; use OCP\IRequest; use OCP\ILogger; use OCP\AppFramework\ApiController; use OCP\AppFramework\Http; use OCA\Gallery\Service\ConfigService; /** * Class ConfigApiController * * @package OCA\Gallery\Controller */ class ConfigApiController extends ApiController { use Config; use HttpError; /** * Constructor * * @param string $appName * @param IRequest $request * @param ConfigService $configService * @param ILogger $logger */ public function __construct( $appName, IRequest $request, ConfigService $configService, ILogger $logger ) { parent::__construct($appName, $request); $this->configService = $configService; $this->logger = $logger; } /** * @NoAdminRequired * @NoCSRFRequired * @CORS * * Returns an app configuration array * * @param bool $extramediatypes * * @return array <string,null|array> */ public function get($extramediatypes = false) { try { return $this->getConfig($extramediatypes); } catch (\Exception $exception) { return $this->jsonError($exception, $this->request, $this->logger); } } }