1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-11 09:32:51 +00:00

server - update user with character info

This commit is contained in:
2018-01-11 20:24:55 -06:00
parent 991e1bfe5a
commit dc7149eb8b
7 changed files with 91 additions and 62 deletions

View File

@@ -22,17 +22,12 @@ defmodule MyAppWeb.Router do
scope "/api", MyAppWeb do
pipe_through [:api]
scope "/battlenet" do
post "/authorize", BattleNetController, :authorize
pipe_through [:user_auth]
get "/characters", BattleNetController, :characters
end
scope "/user" do
# authenticated routes
post "/authorize", UserController, :authorize
pipe_through [:user_auth]
get "/", UserController, :index
get "/characters", UserController, :characters
put "/characters", UserController, :update_selected_character
end
scope "/thread" do