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
80e24443
Commit
80e24443
authored
Feb 08, 2021
by
Muhammad Rafif Elfazri
Browse files
Add routes for Threads Pagination
parent
b0608457
Changes
1
Show whitespace changes
Inline
Side-by-side
lib/diskuy_web/router.ex
View file @
80e24443
...
...
@@ -43,9 +43,21 @@ defmodule DiskuyWeb.Router do
resources
"/topics"
,
TopicController
,
except:
[
:new
,
:edit
,
:create
,
:update
,
:delete
]
options
"/topics"
,
TopicController
,
:options
options
"/topics/:id"
,
TopicController
,
:options
get
"/threads/pages/recent"
,
ThreadPagesController
,
:pages_recent
options
"/threads/pages/recent"
,
ThreadPagesController
,
:options
get
"/threads/pages/top"
,
ThreadPagesController
,
:pages_top
options
"/threads/pages/top"
,
ThreadPagesController
,
:options
get
"/threads/pages/search/:title"
,
ThreadPagesController
,
:pages_search
options
"/threads/pages/search/:title"
,
ThreadPagesController
,
:options
get
"/threads/pages/topic/:topic_id"
,
ThreadPagesController
,
:pages_topic
options
"/threads/pages/topic/:topic_id"
,
ThreadPagesController
,
:options
resources
"/threads"
,
ThreadController
,
except:
[
:new
,
:edit
,
:create
,
:update
,
:delete
]
options
"/threads"
,
ThreadController
,
:options
options
"/threads/:id"
,
ThreadController
,
:options
resources
"/post"
,
PostController
,
except:
[
:new
,
:edit
,
:create
,
:update
,
:delete
]
options
"/post"
,
PostController
,
:options
options
"/post/:id"
,
PostController
,
:options
...
...
@@ -55,6 +67,8 @@ defmodule DiskuyWeb.Router do
# post "/users/signin", UserController, :signin
# options "/users/signin", PostController, :options
end
scope
"/api/auth"
,
DiskuyWeb
do
...
...
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