lokesh341 commited on
Commit
aacf764
·
verified ·
1 Parent(s): 4e75788

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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 jsonify({"success": True, "menu": menu_items})
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):