2018-10-11 17:37:39 +02:00
|
|
|
defmodule MobilizonWeb.OutboxesController do
|
|
|
|
use MobilizonWeb, :controller
|
2018-05-17 11:32:23 +02:00
|
|
|
|
|
|
|
def show(conn) do
|
2018-05-18 09:56:21 +02:00
|
|
|
actor = Guardian.Plug.current_resource(conn).actor
|
|
|
|
events = actor.events
|
2018-05-17 11:32:23 +02:00
|
|
|
|
|
|
|
render(conn, "index.json", events: events)
|
|
|
|
end
|
|
|
|
end
|