* Added proper return types (arrays instead of an object)
* Added proper response header (Content-type: application/json)