PageController.php 630 B

1234567891011121314151617181920212223242526
  1. <?php
  2. declare(strict_types=1);
  3. // SPDX-FileCopyrightText: Ferdinand Thiessen <opensource@fthiessen.de>
  4. // SPDX-License-Identifier: AGPL-3.0-or-later
  5. namespace OCA\TestApp\Controller;
  6. use OCA\TestApp\AppInfo\Application;
  7. use OCP\AppFramework\Controller;
  8. use OCP\AppFramework\Http\TemplateResponse;
  9. use OCP\IRequest;
  10. class PageController extends Controller {
  11. public function __construct(IRequest $request) {
  12. parent::__construct(Application::APP_ID, $request);
  13. }
  14. /**
  15. * @NoAdminRequired
  16. * @NoCSRFRequired
  17. */
  18. public function index(): TemplateResponse {
  19. return new TemplateResponse(Application::APP_ID, 'main');
  20. }
  21. }