Fakultas Ilmu Komputer UI

Commit 80e24443 authored by Muhammad Rafif Elfazri's avatar Muhammad Rafif Elfazri
Browse files

Add routes for Threads Pagination

parent b0608457
......@@ -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
......
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