]> BookStack Code Mirror - bookstack/blobdiff - app/App/HomeController.php
Comments: Added HTML filter test, fixed placeholder in dark mode
[bookstack] / app / App / HomeController.php
index ab62e6d57bd7a2182232051ef3cc5f241e03b6cc..8188ad0102f2bf0dd738f2d0ab214a37d1d1929e 100644 (file)
@@ -140,4 +140,12 @@ class HomeController extends Controller
         $exists = $favicons->restoreOriginalIfNotExists();
         return response()->file($exists ? $favicons->getPath() : $favicons->getOriginalPath());
     }
-}
\ No newline at end of file
+
+    /**
+     * Serve a PWA application manifest.
+     */
+    public function pwaManifest(PwaManifestBuilder $manifestBuilder)
+    {
+        return response()->json($manifestBuilder->build());
+    }
+}