Skip to content

Commit

Permalink
Change request endpoints of highscore api.
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasWen committed Sep 3, 2019
1 parent 06a26a3 commit 1b196e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Requests.elm
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ url =
getScoresCmd : Cmd Msg
getScoresCmd =
Http.get
{ url = url
{ url = url ++ "scores/"
, expect = Http.expectJson ScoreResponse scoreListDecoder
}

Expand All @@ -33,7 +33,7 @@ getScoresCmd =
postScoreCmd : Score -> Cmd Msg
postScoreCmd score =
Http.post
{ url = url
{ url = url ++ "scores/"
, body = Http.jsonBody <| scoreEncoder score
, expect = Http.expectJson ScoreResponse scoreListDecoder
}

0 comments on commit 1b196e0

Please sign in to comment.