API: Auto Doc Index
This commit is contained in:
parent
73d9a65dab
commit
b5a63e64e0
2 changed files with 4 additions and 1 deletions
|
@ -140,7 +140,7 @@ def send_activation(token):
|
||||||
|
|
||||||
@app.route('/api/help')
|
@app.route('/api/help')
|
||||||
def documentation():
|
def documentation():
|
||||||
return auto.html()
|
return app.send_static_file('API_Doc/api_doc_index.html')
|
||||||
|
|
||||||
# @app.route('/api/help/campuses')
|
# @app.route('/api/help/campuses')
|
||||||
# def documentation():
|
# def documentation():
|
||||||
|
|
|
@ -49,6 +49,9 @@
|
||||||
<nav>
|
<nav>
|
||||||
<div class="nav-wrapper">
|
<div class="nav-wrapper">
|
||||||
<a href="#!" class="brand-logo center">SE-Hub API</a>
|
<a href="#!" class="brand-logo center">SE-Hub API</a>
|
||||||
|
<ul id="nav-mobile" class="left hide-on-med-and-down">
|
||||||
|
<li><a href="/api/help">Home</a></li>
|
||||||
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</nav>
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue