mobilizon.chapril.org-mobil.../lib/eventos_web/views/user_session_view.ex

11 lines
267 B
Elixir
Raw Normal View History

defmodule EventosWeb.UserSessionView do
@moduledoc """
View for user Sessions
"""
use EventosWeb, :view
def render("token.json", %{token: token, user: user}) do
%{token: token, user: render_one(user, EventosWeb.UserView, "user_simple.json")}
end
end