updates for production env

This commit is contained in:
2019-12-15 14:30:28 +01:00
parent ef3dd1f2ac
commit 18c39eac1d
5 changed files with 71 additions and 29 deletions

View File

@@ -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)
}