updates for production env
This commit is contained in:
@@ -49,7 +49,7 @@ blankPlayer =
|
||||
get : (Result Http.Error Player -> msg) -> Int -> Cmd msg
|
||||
get toMsg id =
|
||||
Http.get
|
||||
{ url = "http://localhost:8088/api/players/" ++ String.fromInt id ++ "/"
|
||||
{ url = "api/players/" ++ String.fromInt id ++ "/"
|
||||
, expect = Http.expectJson toMsg (valueDecoder playerDecoder)
|
||||
}
|
||||
|
||||
@@ -64,11 +64,14 @@ list toMsg =
|
||||
toMsg players
|
||||
|
||||
Err e ->
|
||||
Debug.log ("Player's list fetch error : " ++ Debug.toString e) <|
|
||||
toMsg []
|
||||
let
|
||||
_ =
|
||||
Debug.log "Player's list fetch error" (Debug.toString e)
|
||||
in
|
||||
toMsg []
|
||||
in
|
||||
Http.get
|
||||
{ url = "http://localhost:8088/api/players/"
|
||||
{ url = "api/players/"
|
||||
, expect = Http.expectJson parseResponse (valueDecoder <| D.list playerDecoder)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user