src/Controller/Static/StaticSitesController.php line 16

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Controller\Static;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\JsonResponse;
  6. use Symfony\Component\HttpFoundation\Response;
  7. use Symfony\Component\Routing\Annotation\Route;
  8. class StaticSitesController extends AbstractController
  9. {
  10.     #[Route(path'/'name'default_home')]
  11.     public function index(): Response
  12.     {
  13.         return $this->redirectToRoute('management_dashboard');
  14.     }
  15.     #[Route(path'/privacy'name'app_privacy')]
  16.     public function privacy(): Response
  17.     {
  18.         return $this->render('static/app_privacy_declaration.html.twig');
  19.     }
  20.     #[Route(path'/apple-app-site-association'name'default_apple_app_site_association')]
  21.     public function appleAppSiteAssociation(): JsonResponse
  22.     {
  23.         return new JsonResponse([
  24.             "applinks" => [
  25.                 "details" => [
  26.                     [
  27.                         "appIDs" => [ "9R3V7FEN5B.de.medfine.medfine" ],
  28.                         "components" => [
  29.                             [
  30.                                 '/' => "/patient/register/*",
  31.                                 "comment" => "Used to open register process sent via mail"
  32.                             ],
  33.                         ]
  34.                     ]
  35.                 ]
  36.             ],
  37.             "webcredentials" => [
  38.                 "apps" => [],
  39.             ],
  40.             "appclips" => [
  41.                 "apps" => [],
  42.             ]
  43.         ]);
  44.     }
  45. }