1
0
mirror of https://github.com/mgerb/classic-wow-forums synced 2026-01-11 17:42:48 +00:00

cache character end point - update reply count/thread reply id

This commit is contained in:
2018-01-09 23:24:09 -06:00
parent 2d6ff0875f
commit d3d3bef9a5
17 changed files with 226 additions and 22 deletions

View File

@@ -24,12 +24,12 @@ defmodule MyAppWeb.BattleNetController do
# TODO: cache this end point
def characters(conn, _params) do
token = conn
%{"access_token" => token, "id" => user_id} = conn
|> MyApp.Guardian.Plug.current_claims
|> Map.get("access_token")
|> Map.take(["access_token", "id"])
{output, status} = token
|> BattleNet.User.get_user_characters
{output, status} = user_id
|> BattleNet.User.get_user_characters(token)
|> Response.put_resp
conn