Skip to content

Commit

Permalink
Change Swagger specs endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Goutay committed Jul 21, 2016
1 parent 341b83f commit 81d6c74
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions flasgger/swaggerui/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,7 @@

<script type="text/javascript">
$(function () {
var url = window.location.search.match(/url=([^&]+)/);
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
url = window.location.toString().replace(/\/*#?.*/, '/swagger.json');
}
var url = window.location.toString().replace(/\/*#?.*/, '/spec');

window.swaggerUi = new SwaggerUi({
url: url,
Expand Down

0 comments on commit 81d6c74

Please sign in to comment.