debianize-mobilizon/lib/eventos_web/controllers/outboxes_controller.ex
Thomas Citharel f1cb601b46
WIP
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2018-06-06 18:14:04 +02:00

12 lines
234 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