Skip to content

BE39: API Contract Alignment for Food & Scan Flows#261

Merged
Vedant1515 merged 1 commit into
masterfrom
pr/api-fooddata-barcode
May 11, 2026
Merged

BE39: API Contract Alignment for Food & Scan Flows#261
Vedant1515 merged 1 commit into
masterfrom
pr/api-fooddata-barcode

Conversation

@TienNguyen3711
Copy link
Copy Markdown
Collaborator

Summary

  • restore the missing /api/fooddata/* lookup endpoints alongside the existing search endpoint
  • clean up the food data controller so it only exposes the lookup handlers used by the food data routes
  • accept barcode values from the request body so the backend matches the frontend barcode scan contract

What files changed

  • routes/fooddata.js
  • controller/foodDataController.js
  • controller/barcodeScanningController.js

Testing

  • node -c controller/foodDataController.js
  • node -c controller/barcodeScanningController.js
  • node -c routes/fooddata.js
  • not run end-to-end

@TienNguyen3711 TienNguyen3711 changed the title Fix food data and barcode route contracts BE39: API Contract Alignment for Food & Scan Flows May 10, 2026
@TienNguyen3711 TienNguyen3711 requested a review from Vedant1515 May 10, 2026 14:27
@Vedant1515 Vedant1515 merged commit f818541 into master May 11, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants