Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -88,6 +88,10 @@ def get_menu_items():
|
|
88 |
result = sf.query(query)
|
89 |
return result['records']
|
90 |
|
|
|
|
|
|
|
|
|
91 |
# Function to create Salesforce record
|
92 |
# API endpoint to receive data from voice bot
|
93 |
@app.route('/login', methods=['POST'])
|
@@ -140,10 +144,6 @@ def submit():
|
|
140 |
except Exception as e:
|
141 |
return jsonify({'error': str(e)}), 500
|
142 |
|
143 |
-
@app.route("/")
|
144 |
-
def index():
|
145 |
-
return render_template("index.html")
|
146 |
-
|
147 |
|
148 |
@app.route("/menu", methods=["GET"])
|
149 |
def menu_page():
|
|
|
88 |
result = sf.query(query)
|
89 |
return result['records']
|
90 |
|
91 |
+
@app.route("/")
|
92 |
+
def index():
|
93 |
+
return render_template("index.html")
|
94 |
+
|
95 |
# Function to create Salesforce record
|
96 |
# API endpoint to receive data from voice bot
|
97 |
@app.route('/login', methods=['POST'])
|
|
|
144 |
except Exception as e:
|
145 |
return jsonify({'error': str(e)}), 500
|
146 |
|
|
|
|
|
|
|
|
|
147 |
|
148 |
@app.route("/menu", methods=["GET"])
|
149 |
def menu_page():
|