Nextcloud-App/lib/Controller/PageController.php

31 lines
726 B
PHP
Raw Permalink Normal View History

2021-08-21 10:58:00 +00:00
<?php
2023-10-11 19:55:03 +00:00
declare(strict_types=1);
// SPDX-FileCopyrightText: BVSC e.V. <no@example.com>
// SPDX-License-Identifier: AGPL-3.0-or-later
2021-08-21 10:58:00 +00:00
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
*/
2023-10-11 19:55:03 +00:00
public function index(): TemplateResponse {
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
}