2024-04-25 08:03:54 +00:00
|
|
|
<?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;
|
|
|
|
|
2024-11-10 16:07:56 +00:00
|
|
|
class PageController extends Controller
|
|
|
|
{
|
2024-04-25 08:03:54 +00:00
|
|
|
#[NoCSRFRequired]
|
|
|
|
#[NoAdminRequired]
|
|
|
|
#[OpenAPI(OpenAPI::SCOPE_IGNORE)]
|
|
|
|
#[FrontpageRoute(verb: 'GET', url: '/')]
|
|
|
|
public function index(): TemplateResponse {
|
|
|
|
return new TemplateResponse(
|
|
|
|
Application::APP_ID,
|
|
|
|
'index',
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|