Michel Roux
62f793e748
All checks were successful
app_template / xml (push) Successful in 11s
app_template / php (push) Successful in 1m7s
app_template / nodejs (push) Successful in 1m1s
app_template / release (push) Has been skipped
28 lines
673 B
PHP
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',
|
|
);
|
|
}
|
|
}
|