webtransfer/lib/Controller/PageController.php

30 lines
712 B
PHP
Raw Normal View History

2024-11-06 15:35:54 +01:00
<?php
declare(strict_types=1);
namespace OCA\WebTransfer\Controller;
2024-11-06 15:35:54 +01:00
use OCA\WebTransfer\AppInfo\Application;
2024-11-06 15:35:54 +01:00
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;
/**
* @psalm-suppress UnusedClass
*/
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',
);
}
}