mirror of
https://github.com/mgerb/classic-wow-forums
synced 2026-01-11 09:32:51 +00:00
lots of things done: thread - reply - category - seeds
This commit is contained in:
@@ -26,6 +26,23 @@ defmodule MyAppWeb.Router do
|
||||
pipe_through [:api_auth]
|
||||
get "/", UserController, :index
|
||||
end
|
||||
|
||||
scope "/thread" do
|
||||
# authenticated routes
|
||||
pipe_through [:api_auth]
|
||||
post "/", ThreadController, :insert
|
||||
put "/", ThreadController, :update
|
||||
end
|
||||
|
||||
scope "reply" do
|
||||
# authenticated routes
|
||||
pipe_through [:api_auth]
|
||||
post "/", ReplyController, :insert
|
||||
end
|
||||
|
||||
scope "/category" do
|
||||
get "/", CategoryController, :get_collection
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user