]> BookStack Code Mirror - bookstack/blobdiff - app/App/HomeController.php
Uploads: Explicitly disabled s3 streaming in config
[bookstack] / app / App / HomeController.php
index 24b7c3ed819eacb1e0f7dbe04638446dfdf69197..8188ad0102f2bf0dd738f2d0ab214a37d1d1929e 100644 (file)
@@ -140,4 +140,12 @@ class HomeController extends Controller
         $exists = $favicons->restoreOriginalIfNotExists();
         return response()->file($exists ? $favicons->getPath() : $favicons->getOriginalPath());
     }
+
+    /**
+     * Serve a PWA application manifest.
+     */
+    public function pwaManifest(PwaManifestBuilder $manifestBuilder)
+    {
+        return response()->json($manifestBuilder->build());
+    }
 }