Skip to content

Commit

Permalink
Merge pull request #23 from rlems/master
Browse files Browse the repository at this point in the history
Load swaggerUi before adding api_key authorization (issue #22)
  • Loading branch information
DarkaOnLine authored Jun 10, 2016
2 parents 7f89c4a + 5b71e10 commit 3df6274
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions resources/views/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,14 @@ function addApiKeyAuthorization(){
addApiKeyAuthorization();
});
window.swaggerUi.load();
// if you have an apiKey you would like to pre-populate on the page for demonstration purposes
// just put it in the .env file, API_AUTH_TOKEN variable
@if($apiKey)
$('#input_apiKey').val("{{$apiKey}}");
addApiKeyAuthorization();
@endif
window.swaggerUi.load();
});
</script>
</head>
Expand Down

0 comments on commit 3df6274

Please sign in to comment.