From 5ffab3644b5459b3ad1b95fe5c6172dd4e9c38e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nu=C5=A1a=20Puk=C5=A1i=C4=8D?= Date: Mon, 19 May 2025 18:06:58 +0200 Subject: [PATCH] Webmanifest --- src/Controller/StaticController.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Controller/StaticController.php b/src/Controller/StaticController.php index b838648..8bd4ce8 100644 --- a/src/Controller/StaticController.php +++ b/src/Controller/StaticController.php @@ -33,4 +33,10 @@ class StaticController extends AbstractController { return $this->render('static/tos.html.twig'); } + + #[Route('/manifest.webmanifest', name: 'pwa_manifest')] + public function manifest(): Response + { + return $this->render('static/manifest.webmanifest.twig', [], new Response('', 200, ['Content-Type' => 'application/manifest+json'])); + } }