mobilizon/lib/eventos_web/controllers/outboxes_controller.ex
Thomas Citharel 979aad5acb Remove credo and use mix format, and lint everything
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-07-27 10:45:35 +02:00

11 lines
233 B
Elixir

defmodule EventosWeb.OutboxesController do
use EventosWeb, :controller
def show(conn) do
actor = Guardian.Plug.current_resource(conn).actor
events = actor.events
render(conn, "index.json", events: events)
end
end