32 lines
632 B
PHP
32 lines
632 B
PHP
|
<?php
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
namespace OCA\Radio\Controller;
|
||
|
|
||
|
use OCP\IRequest;
|
||
|
use OCP\AppFramework\Http\TemplateResponse;
|
||
|
use OCP\AppFramework\Controller;
|
||
|
use OCP\Util;
|
||
|
|
||
|
class PageController extends Controller {
|
||
|
|
||
|
protected $appName;
|
||
|
|
||
|
public function __construct($appName, IRequest $request) {
|
||
|
parent::__construct($appName, $request);
|
||
|
$this->appName = $appName;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @NoAdminRequired
|
||
|
* @NoCSRFRequired
|
||
|
*/
|
||
|
public function index() {
|
||
|
Util::addScript($this->appName, 'radio-main');
|
||
|
Util::addStyle($this->appName, 'icons');
|
||
|
|
||
|
$response = new TemplateResponse($this->appName, 'main');
|
||
|
return $response;
|
||
|
}
|
||
|
}
|