+ plug(Plug.Static.IndexHtml, at: "/akkoma/swaggerui")
+
+ plug(Pleroma.Web.Plugs.FrontendStatic,
+ at: "/akkoma/swaggerui",
+ frontend_type: :swagger,
+ gzip: true,
+ if: &Akkoma.Web.Swagger.ui_enabled?/0,
+ cache_control_for_etags: @static_cache_control,
+ headers: %{
+ "cache-control" => @static_cache_control
+ }
+ )
+
+ plug(Pleroma.Web.Plugs.FrontendStatic,
+ at: "/",
+ frontend_type: :mastodon,
+ gzip: true,
+ cache_control_for_etags: @static_cache_control,
+ headers: %{
+ "cache-control" => @static_cache_control
+ }
+ )
+