Update src/Pages/Secrets.elm

This commit is contained in:
Dillon Kearns 2020-03-18 08:07:52 -07:00 committed by GitHub
parent 0cc7e2a077
commit 4aa8d43315
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -20,7 +20,7 @@ And your StaticHttp request in your Elm code looks like this:
StaticHttp.request
(Secrets.succeed
(\apiKey bearer ->
(\apiKey githubToken ->
{ url = "https://api.github.com/repos/dillonkearns/elm-pages?apiKey=" ++ apiKey
, method = "GET"
, headers = [ ( "Authorization", "Bearer " ++ githubToken ) ]