diff --git a/server.py b/server.py index c0c77ca..8b0c7d7 100644 --- a/server.py +++ b/server.py @@ -1,4 +1,4 @@ -from flask import Flask, request +from flask import Flask, request, render_template import mysql.connector mydb = mysql.connector.connect( @@ -26,3 +26,7 @@ def show(id): def create(): cursor.execute('INSERT INTO meetings (num_participants) VALUES (%s)', [request.json['num_participants']]) return request.json + +@app.get('/') +def home(id): + return render_template('home.html', id=id) diff --git a/templates/home.html b/templates/home.html new file mode 100644 index 0000000..f48b70e --- /dev/null +++ b/templates/home.html @@ -0,0 +1,10 @@ + + + + + + + +

How Much Time Have We Wasted?

+ +