API Doc Fix

This commit is contained in:
Sagi Dayan 2015-06-25 20:45:43 +03:00
parent e135ee020a
commit 2a55d7f898
2 changed files with 5 additions and 4 deletions

View file

@ -137,12 +137,12 @@ def send_activation(token):
return Response(status=200)
@app.route('/api/help')
def documentation():
def documentation_index():
return app.send_static_file('API_Doc/api_doc_index.html')
# @app.route('/api/help/campuses')
# def documentation():
# return auto.html()
@app.route('/api/help/misc')
def documentation_misc():
return auto.html()
@app.route('/home')
def returnHome():

View file

@ -63,6 +63,7 @@
<li class="collection-item dismissable"><div>Projects Related API<a href="/api/projects/help" class="secondary-content"><i class="mdi-content-send"></i></a></div></li>
<li class="collection-item dismissable"><div>Tasks Related API<a href="/api/tasks/help" class="secondary-content"><i class="mdi-content-send"></i></a></div></li>
<li class="collection-item dismissable"><div>Validation Related API<a href="#!" class="secondary-content"><i class="mdi-content-send"></i></a></div></li>
<li class="collection-item dismissable"><div>Miscellaneous Methods<a href="/api/help/misc" class="secondary-content"><i class="mdi-content-send"></i></a></div></li>
</ul>
</div>