Add Custom Pleroma-dark theme
[akkoma] / lib / pleroma / web / mastodon_api / mastodon_api_controller.ex
index ca1e4c8d5e6d2b0eaaae8f2c7b95d70e5ec22f53..9c50e850b057d3d66871b8a233c7a2930d30da70 100644 (file)
@@ -583,6 +583,12 @@ defmodule Pleroma.Web.MastodonAPI.MastodonAPIController do
     end
   end
 
+  def logout(conn, _) do
+    conn
+    |> clear_session
+    |> redirect(to: "/")
+  end
+
   def relationship_noop(%{assigns: %{user: user}} = conn, %{"id" => id}) do
     Logger.debug("Unimplemented, returning unmodified relationship")
     with %User{} = target <- Repo.get(User, id) do