559c889f1b
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
11 lines
273 B
Elixir
11 lines
273 B
Elixir
defmodule MobilizonWeb.UserSessionView do
|
|
@moduledoc """
|
|
View for user Sessions
|
|
"""
|
|
use MobilizonWeb, :view
|
|
|
|
def render("token.json", %{token: token, user: user}) do
|
|
%{token: token, user: render_one(user, MobilizonWeb.UserView, "user_simple.json")}
|
|
end
|
|
end
|