Expose /manifest.json for PWA
[akkoma] / lib / pleroma / web / router.ex
index efca7078a178344c091e17ac61f748bee68e65ba..c3b74e622efa34c21703d1ddf58f0dc311509863 100644 (file)
@@ -750,6 +750,12 @@ defmodule Pleroma.Web.Router do
     get("/web/manifest.json", MastoFEController, :manifest)
   end
 
+  scope "/", Pleroma.Web do
+    pipe_through(:api)
+
+    get("/manifest.json", ManifestController, :show)
+  end
+
   scope "/", Pleroma.Web do
     pipe_through(:mastodon_html)