mobilizon.chapril.org-mobil.../lib/mobilizon_web/controllers/outboxes_controller.ex

11 lines
237 B
Elixir
Raw Normal View History

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