Rename home to landing page

This commit is contained in:
Peter Stockings
2025-07-23 21:36:22 +10:00
parent d65495541f
commit 39c819f062
3 changed files with 44 additions and 210 deletions

14
app.py
View File

@@ -115,21 +115,13 @@ def map_isolator_response_to_flask_response(response):
@ app.route("/", methods=["GET"])
def home():
return render_template("home.html", name='Try me', script=DEFAULT_SCRIPT, environment_info=DEFAULT_ENVIRONMENT)
def landing_page():
return render_template("landing_page.html", name='Try me', script=DEFAULT_SCRIPT, environment_info=DEFAULT_ENVIRONMENT)
@app.route("/documentation", methods=["GET"])
def documentation():
return render_template("documentation.html")
@ app.route("/dashboard", methods=["GET"])
@login_required
def dashboard():
user_id = current_user.id
http_functions = db.get_http_functions_for_user(user_id)
http_functions = create_http_functions_view_model(http_functions)
return render_template("dashboard/http_functions/overview.html", http_functions=http_functions)
@app.route('/execute', methods=['POST'])
def execute_code():
try:
@@ -307,7 +299,7 @@ def signup():
@login_required
def logout():
logout_user()
return redirect(url_for('home'))
return redirect(url_for('landing_page'))