Add views (static for now) for http and timer functions on dashboard

This commit is contained in:
Peter Stockings
2023-12-16 18:19:48 +11:00
parent ca4cfd27b9
commit 4796b7d8d1
4 changed files with 113 additions and 75 deletions

10
app.py
View File

@@ -53,7 +53,7 @@ def map_isolator_response_to_flask_response(response):
@ app.route("/", methods=["GET"])
def index():
def home():
return render_template("home.html", script=DEFAULT_SCRIPT)
@ app.route("/client", methods=["GET"])
@@ -64,6 +64,14 @@ def client():
def dashboard():
return render_template("dashboard.html")
@ app.route("/dashboard/http_functions", methods=["GET"])
def dashboard_http_functions():
return render_template("dashboard/http_functions.html")
@ app.route("/dashboard/timer_functions", methods=["GET"])
def dashboard_timer_functions():
return render_template("dashboard/timer_functions.html")
@app.route('/execute', methods=['POST'])
def execute_code():