Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -114,10 +114,11 @@ def get_menu():
|
|
114 |
"image_url": item.get("Image_URL__c", "default_image.jpg") # Fallback if no image is found
|
115 |
})
|
116 |
|
117 |
-
return
|
118 |
except Exception as e:
|
119 |
return jsonify({"error": f"Failed to fetch menu: {str(e)}"}), 500
|
120 |
|
|
|
121 |
# ✅ STATIC IMAGES ROUTE
|
122 |
@app.route("/static/images/<path:filename>")
|
123 |
def static_images(filename):
|
|
|
114 |
"image_url": item.get("Image_URL__c", "default_image.jpg") # Fallback if no image is found
|
115 |
})
|
116 |
|
117 |
+
return static/images/your_image.jpg("Image_URL__c", menu=menu_items)
|
118 |
except Exception as e:
|
119 |
return jsonify({"error": f"Failed to fetch menu: {str(e)}"}), 500
|
120 |
|
121 |
+
|
122 |
# ✅ STATIC IMAGES ROUTE
|
123 |
@app.route("/static/images/<path:filename>")
|
124 |
def static_images(filename):
|