Bug Report
Node's /feedback route (in server.js) forwards requests to
${ML_API_BASE}/feedback, but backend/app.py only defines:
There is no /feedback route in Flask. Any feedback submission
Currently returns a 404 from Flask, relayed to the frontend as an error.
Impact
The feedback feature documented in the README isn't working.
Proposed Fix
Add a minimal POST /feedback route to app.py that:
- Accepts
{ text, predicted_label, correct_label }
- Validates
correct_label is one of ham, spam, or smishing
- Appends to
feedback_store.csv
- Returns
201 on success, 400 on invalid data
Bug Report
Node's
/feedbackroute (inserver.js) forwards requests to${ML_API_BASE}/feedback, butbackend/app.pyonly defines://health/predictThere is no
/feedbackroute in Flask. Any feedback submissionCurrently returns a 404 from Flask, relayed to the frontend as an error.
Impact
The feedback feature documented in the README isn't working.
Proposed Fix
Add a minimal
POST /feedbackroute toapp.pythat:{ text, predicted_label, correct_label }correct_labelis one ofham,spam, orsmishingfeedback_store.csv201on success,400on invalid data