2021-08-21 10:58:00 +00:00
|
|
|
<?php
|
|
|
|
|
2021-08-21 14:25:23 +00:00
|
|
|
namespace OCA\UPschooling\Controller;
|
2021-08-21 14:17:14 +00:00
|
|
|
|
2021-08-21 14:25:23 +00:00
|
|
|
use OCA\UPschooling\AppInfo\Application;
|
2021-08-21 10:58:00 +00:00
|
|
|
use OCP\AppFramework\Controller;
|
2021-08-21 14:17:14 +00:00
|
|
|
use OCP\AppFramework\Http\TemplateResponse;
|
|
|
|
use OCP\IRequest;
|
|
|
|
use OCP\Util;
|
2021-08-21 10:58:00 +00:00
|
|
|
|
|
|
|
class PageController extends Controller {
|
2021-08-21 14:17:14 +00:00
|
|
|
public function __construct(IRequest $request) {
|
|
|
|
parent::__construct(Application::APP_ID, $request);
|
2021-08-21 10:58:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @NoAdminRequired
|
|
|
|
* @NoCSRFRequired
|
2021-08-21 14:17:14 +00:00
|
|
|
*
|
|
|
|
* Render default template
|
2021-08-21 10:58:00 +00:00
|
|
|
*/
|
|
|
|
public function index() {
|
2021-08-21 14:25:23 +00:00
|
|
|
Util::addScript(Application::APP_ID, 'upschooling-main');
|
2021-08-21 10:58:00 +00:00
|
|
|
|
2021-08-21 14:17:14 +00:00
|
|
|
return new TemplateResponse(Application::APP_ID, 'main');
|
2021-08-21 14:00:48 +00:00
|
|
|
}
|
2021-08-21 10:58:00 +00:00
|
|
|
}
|