mirror of
https://git.crystalyx.net/Xefir/repod.git
synced 2024-12-27 09:14:56 +01:00
29 lines
686 B
PHP
29 lines
686 B
PHP
|
<?php
|
||
|
declare(strict_types=1);
|
||
|
// SPDX-FileCopyrightText: Xéfir Destiny <xefir@crystalyx.net>
|
||
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||
|
|
||
|
namespace OCA\RePod\Controller;
|
||
|
|
||
|
use OCA\RePod\AppInfo\Application;
|
||
|
use OCP\AppFramework\Controller;
|
||
|
use OCP\AppFramework\Http\TemplateResponse;
|
||
|
use OCP\IRequest;
|
||
|
use OCP\Util;
|
||
|
|
||
|
class PageController extends Controller {
|
||
|
public function __construct(IRequest $request) {
|
||
|
parent::__construct(Application::APP_ID, $request);
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @NoAdminRequired
|
||
|
* @NoCSRFRequired
|
||
|
*/
|
||
|
public function index(): TemplateResponse {
|
||
|
Util::addScript(Application::APP_ID, 'repod-main');
|
||
|
|
||
|
return new TemplateResponse(Application::APP_ID, 'main');
|
||
|
}
|
||
|
}
|