Fakultas Ilmu Komputer UI

Skip to content
Snippets Groups Projects
Commit 5d374bc1 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Create JSON View for Thread Pagination

parent cba4de95
Branches
No related tags found
No related merge requests found
defmodule DiskuyWeb.ThreadPagesView do
use DiskuyWeb, :view
# alias DiskuyWeb.ThreadPagesView
def render("pages.json", %{entries: entries, metadata: metadata}) do
%{entries: entries,
metadata: Map.from_struct(metadata)
}
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment