Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,6 +93,11 @@ def get_menu_items():
|
|
| 93 |
def index():
|
| 94 |
return render_template("index.html")
|
| 95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
# Function to create Salesforce record
|
| 97 |
# API endpoint to receive data from voice bot
|
| 98 |
@app.route('/login', methods=['POST'])
|
|
@@ -144,11 +149,6 @@ def submit():
|
|
| 144 |
except Exception as e:
|
| 145 |
return jsonify({'error': str(e)}), 500
|
| 146 |
|
| 147 |
-
@app.route("/dashboard", methods=["GET"])
|
| 148 |
-
def dashboard():
|
| 149 |
-
# You can pass user-specific data to this page if needed
|
| 150 |
-
return render_template("dashboard.html") # Render the dashboard template
|
| 151 |
-
|
| 152 |
|
| 153 |
# Route for the menu page
|
| 154 |
@app.route("/menu", methods=["GET"])
|
|
|
|
| 93 |
def index():
|
| 94 |
return render_template("index.html")
|
| 95 |
|
| 96 |
+
@app.route("/dashboard", methods=["GET"])
|
| 97 |
+
def dashboard():
|
| 98 |
+
# You can pass user-specific data to this page if needed
|
| 99 |
+
return render_template("dashboard.html") # Render the dashboard template
|
| 100 |
+
|
| 101 |
# Function to create Salesforce record
|
| 102 |
# API endpoint to receive data from voice bot
|
| 103 |
@app.route('/login', methods=['POST'])
|
|
|
|
| 149 |
except Exception as e:
|
| 150 |
return jsonify({'error': str(e)}), 500
|
| 151 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 152 |
|
| 153 |
# Route for the menu page
|
| 154 |
@app.route("/menu", methods=["GET"])
|