Update app.py
Browse files
app.py
CHANGED
|
@@ -83,8 +83,8 @@ def index():
|
|
| 83 |
def dashboard():
|
| 84 |
return render_template("dashboard.html") # Render the dashboard template
|
| 85 |
|
| 86 |
-
@app.route('/
|
| 87 |
-
def
|
| 88 |
data = request.json
|
| 89 |
name = data.get('name')
|
| 90 |
email = data.get('email')
|
|
|
|
| 83 |
def dashboard():
|
| 84 |
return render_template("dashboard.html") # Render the dashboard template
|
| 85 |
|
| 86 |
+
@app.route('/submit', methods=['POST'])
|
| 87 |
+
def submit():
|
| 88 |
data = request.json
|
| 89 |
name = data.get('name')
|
| 90 |
email = data.get('email')
|