2023-06-24 17:18:27 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace OCA\RePod\Controller;
|
|
|
|
|
|
|
|
use OCA\RePod\AppInfo\Application;
|
|
|
|
use OCP\AppFramework\Controller;
|
|
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
|
|
|
use OCP\IRequest;
|
|
|
|
use OCP\Util;
|
|
|
|
|
2023-06-24 18:37:25 +02:00
|
|
|
class PageController extends Controller
|
|
|
|
{
|
2023-06-24 17:18:27 +02:00
|
|
|
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');
|
|
|
|
}
|
|
|
|
}
|