Show public functions on landing page as well

This commit is contained in:
Peter Stockings
2025-11-21 10:43:10 +11:00
parent 213abbfe93
commit d7188a1a43
2 changed files with 75 additions and 1 deletions

5
app.py
View File

@@ -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():