mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-08 07:29:08 +03:00
Merge pull request #80 from simplystuart/fix-secrets-example
Fix Secrets.succeed arguments in example
This commit is contained in:
commit
352f21d7a9
@ -20,10 +20,10 @@ And your StaticHttp request in your Elm code looks like this:
|
||||
|
||||
StaticHttp.request
|
||||
(Secrets.succeed
|
||||
(\githubToken stripeoken ->
|
||||
(\apiKey githubToken ->
|
||||
{ url = "https://api.github.com/repos/dillonkearns/elm-pages?apiKey=" ++ apiKey
|
||||
, method = "GET"
|
||||
, headers = [ ( "Authorization", "Bearer " ++ bearer ) ]
|
||||
, headers = [ ( "Authorization", "Bearer " ++ githubToken ) ]
|
||||
}
|
||||
)
|
||||
|> Secrets.with "API_KEY"
|
||||
|
Loading…
Reference in New Issue
Block a user