Skip to content

Commit

Permalink
Add Swagger/ReDoc links to layout.html. Fixes #152.
Browse files Browse the repository at this point in the history
  • Loading branch information
dougthor42 committed May 7, 2019
1 parent 172fa9d commit 5c0ae66
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@


## Unreleased
+ Links to the Swagger/ReDoc API documentation are now provided on the main
page. (#152)


## 0.6.0b1 (2019-05-01)
Expand Down
6 changes: 6 additions & 0 deletions src/trendlines/templates/trendlines/layout.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@
<main>
<h1><a href="{{ url_for('pages.index') }}">Trendlines</a></h1>
<h4>v{{ version }}</h4>
<div id="apiLinks">
<ul>
<li><a target="_blank" href="/api/">API Reference (Swagger)</a></li>
<li><a target="_blank" href="/api/redoc">API Reference (ReDoc)</a></li>
</ul>
</div>

<div id="content">
{% block body %}
Expand Down

0 comments on commit 5c0ae66

Please sign in to comment.