retro/lib/Controller/PageController.php
Michel Roux 40f8a19b92
All checks were successful
retro / xml (push) Successful in 13s
retro / php (push) Successful in 57s
retro / nodejs (push) Successful in 1m34s
retro / release (push) Has been skipped
chore: add emulatorjs
2024-12-26 23:16:03 +01:00

28 lines
661 B
PHP

<?php
declare(strict_types=1);
namespace OCA\Retro\Controller;
use OCA\Retro\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',
);
}
}