Nextcloud-App/lib/Controller/PageController.php

28 lines
583 B
PHP
Raw Normal View History

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:25:23 +00:00
use OCA\UPschooling\AppInfo\Application;
2021-08-21 10:58:00 +00:00
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\IRequest;
use OCP\Util;
2021-08-21 10:58:00 +00:00
class PageController extends Controller {
public function __construct(IRequest $request) {
parent::__construct(Application::APP_ID, $request);
2021-08-21 10:58:00 +00:00
}
/**
* @NoAdminRequired
* @NoCSRFRequired
*
* 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
return new TemplateResponse(Application::APP_ID, 'main');
2021-08-21 14:00:48 +00:00
}
2021-08-21 10:58:00 +00:00
}