Show public functions on landing page as well
This commit is contained in:
5
app.py
5
app.py
@@ -76,7 +76,10 @@ def map_isolator_response_to_flask_response(response):
|
||||
|
||||
@ app.route("/", methods=["GET"])
|
||||
def landing_page():
|
||||
return render_template("landing_page.html", name='Try me', script=DEFAULT_SCRIPT, environment_info=DEFAULT_ENVIRONMENT)
|
||||
public_functions = db.get_public_http_functions()
|
||||
# Limit to top 6 for the landing page
|
||||
public_functions = public_functions[:6] if public_functions else []
|
||||
return render_template("landing_page.html", name='Try me', script=DEFAULT_SCRIPT, environment_info=DEFAULT_ENVIRONMENT, public_functions=public_functions)
|
||||
|
||||
@app.route("/documentation", methods=["GET"])
|
||||
def documentation():
|
||||
|
||||
Reference in New Issue
Block a user