Implement HarvestController & Routes
Title: Create harvest submission and approval endpoints
Description:
Implement HarvestController with endpoints for harvest submission, admin approval, and history retrieval.
Endpoints
POST /harvest (farmer only)
GET /harvest/pending (admin only)
POST /harvest/:id/approve (admin only)
POST /harvest/:id/reject (admin only)
GET /harvest/:farmId
Acceptance Criteria
- Harvest submission with image upload is working
- Admin approval workflow is functional
- Rejection workflow is working
- History retrieval is accurate
Implement HarvestController & Routes
Title: Create harvest submission and approval endpoints
Description:
Implement
HarvestControllerwith endpoints for harvest submission, admin approval, and history retrieval.Endpoints
POST /harvest(farmer only)GET /harvest/pending(admin only)POST /harvest/:id/approve(admin only)POST /harvest/:id/reject(admin only)GET /harvest/:farmIdAcceptance Criteria