Skip to content

Commit

Permalink
Fixing URL in client
Browse files Browse the repository at this point in the history
  • Loading branch information
brase committed Apr 14, 2020
1 parent f9e19f5 commit 58abbc1
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Client/Client.fs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ open Elmish
open Elmish.React
open Elmish.UrlParser
open Elmish.Navigation
open Fable.Core
open Fable.FontAwesome
open Fable.FontAwesome.Free
open Fable.React
Expand All @@ -20,8 +21,8 @@ open Elmish
open Fable.Import
open Shared

[<Literal>]
let BaseUrl = "http://localhost:80"
[<Emit("__BASE_URL__")>]
let BaseUrl : string = jsNative

type LinkCode =
| LinkCode of System.Guid
Expand Down Expand Up @@ -62,7 +63,7 @@ let postAuthorization linkCode model =
HouseholdId = model.HouseholdId
LinkCode = linkCode }

return! Fetch.post<SmapiAuthRendition,string>(BaseUrl + "/api/users/smapiauth", data)
return! Fetch.post<SmapiAuthRendition,string>(BaseUrl + "/api/users/smapiauth", data, caseStrategy = CamelCase)
}


Expand Down

0 comments on commit 58abbc1

Please sign in to comment.