API responses are inconsistent. All endpoints must return a standardized JSON object.
Acceptance Criteria:
- All API endpoints MUST return a JSON object with the structure: { success: bool, message: string, data: object|array|null }.
- For list responses, the data object should contain an items array: data: { items: [...] }.
- Refactor at least two key endpoints (e.g., getallclients.php, getallpolicies.php) to use the new envelope.
API responses are inconsistent. All endpoints must return a standardized JSON object.
Acceptance Criteria: