app_template/lib/Controller/PageController.php
Michel Roux eea558ec0f
Some checks failed
app_template / nodejs (push) Waiting to run
app_template / release (push) Waiting to run
app_template / xml (push) Successful in 18s
app_template / php (push) Has been cancelled
rest of app
2024-11-10 17:07:56 +01:00

28 lines
673 B
PHP

<?php
declare(strict_types=1);
namespace OCA\AppTemplate\Controller;
use OCA\AppTemplate\AppInfo\Application;
use OCP\AppFramework\Controller;
use OCP\AppFramework\Http\Attribute\FrontpageRoute;
use OCP\AppFramework\Http\Attribute\NoAdminRequired;
use OCP\AppFramework\Http\Attribute\NoCSRFRequired;
use OCP\AppFramework\Http\Attribute\OpenAPI;
use OCP\AppFramework\Http\TemplateResponse;
class PageController extends Controller
{
#[NoCSRFRequired]
#[NoAdminRequired]
#[OpenAPI(OpenAPI::SCOPE_IGNORE)]
#[FrontpageRoute(verb: 'GET', url: '/')]
public function index(): TemplateResponse {
return new TemplateResponse(
Application::APP_ID,
'index',
);
}
}