1
0
Fork 0
mirror of https://framagit.org/framasoft/mobilizon.git synced 2025-01-23 09:08:41 +00:00
mobilizon/lib/eventos_web/controllers/outboxes_controller.ex

12 lines
234 B
Elixir
Raw Normal View History

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