Fakultas Ilmu Komputer UI

Commit 92592449 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

add picture link on user_view

parent dde06526
...@@ -17,7 +17,8 @@ defmodule DiskuyWeb.UserView do ...@@ -17,7 +17,8 @@ defmodule DiskuyWeb.UserView do
def render("user.json", %{user: user}) do def render("user.json", %{user: user}) do
%{id: user.id, %{id: user.id,
username: user.username, username: user.username,
name: user.email name: user.email,
picture: user.picture
} }
end end
...@@ -26,6 +27,7 @@ defmodule DiskuyWeb.UserView do ...@@ -26,6 +27,7 @@ defmodule DiskuyWeb.UserView do
id: user.id, id: user.id,
email: user.email, email: user.email,
username: user.username, username: user.username,
picture: user.picture,
token: token token: token
} }
end end
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment