config: update config for cowboy 2 endpoints
authorWilliam Pitcock <nenolod@dereferenced.org>
Thu, 28 Feb 2019 15:43:38 +0000 (15:43 +0000)
committerWilliam Pitcock <nenolod@dereferenced.org>
Thu, 28 Feb 2019 15:44:12 +0000 (15:44 +0000)
config/config.exs

index 7e4ac11006220639fd07657a6909f19b858d923e..374b4d86b6eba026d8aab99f5b6f47101543f23c 100644 (file)
@@ -93,10 +93,10 @@ config :pleroma, Pleroma.Web.Endpoint,
     dispatch: [
       {:_,
        [
-         {"/api/v1/streaming", Elixir.Pleroma.Web.MastodonAPI.WebsocketHandler, []},
-         {"/socket/websocket", Phoenix.Endpoint.CowboyWebSocket,
+         {"/api/v1/streaming", Pleroma.Web.MastodonAPI.WebsocketHandler, []},
+         {"/socket/websocket", Phoenix.Endpoint.CowboyWebsocket,
           {nil, {Pleroma.Web.Endpoint, Pleroma.Web.UserSocket, websocket_config}}},
-         {:_, Plug.Adapters.Cowboy.Handler, {Pleroma.Web.Endpoint, []}}
+         {:_, Phoenix.Endpoint.Cowboy2Handler, {Pleroma.Web.Endpoint, []}}
        ]}
     ]
   ],