Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Functional Programming
Diskuy-Backend
Commits
5d374bc1
Commit
5d374bc1
authored
Feb 08, 2021
by
Muhammad Rafif Elfazri
Browse files
Create JSON View for Thread Pagination
parent
cba4de95
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/diskuy_web/views/thread_pages_view.ex
0 → 100644
View file @
5d374bc1
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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment