har1zarD commited on
Commit
5072338
·
1 Parent(s): 54ef380
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -274,7 +274,7 @@ def root():
274
  "message": "Food Recognition API",
275
  "status": "online",
276
  "endpoints": {
277
- "POST /api/analyze-food": "Analyze food image",
278
  "GET /health": "Health check"
279
  }
280
  }
@@ -314,7 +314,7 @@ async def _analyze_food_internal(file: UploadFile) -> Dict[str, Any]:
314
  logger.error(f"❌ Error: {e}")
315
  raise HTTPException(status_code=500, detail=f"Analysis failed: {str(e)}")
316
 
317
- @app.post("/api/analyze-food")
318
  async def analyze_food(file: UploadFile = File(...)):
319
  """
320
  Analyze food image (Next.js API endpoint).
 
274
  "message": "Food Recognition API",
275
  "status": "online",
276
  "endpoints": {
277
+ "POST /api/nutrition/analyze-food": "Analyze food image",
278
  "GET /health": "Health check"
279
  }
280
  }
 
314
  logger.error(f"❌ Error: {e}")
315
  raise HTTPException(status_code=500, detail=f"Analysis failed: {str(e)}")
316
 
317
+ @app.post("/api/nutrition/analyze-food")
318
  async def analyze_food(file: UploadFile = File(...)):
319
  """
320
  Analyze food image (Next.js API endpoint).