Nextcloud-App/lib/Controller/PageController.php

28 lines
589 B
PHP

<?php
namespace OCA\NotesTutorial\Controller;
use OCA\NotesTutorial\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
*
* Render default template
*/
public function index() {
Util::addScript(Application::APP_ID, 'notestutorial-main');
return new TemplateResponse(Application::APP_ID, 'main');
}
}