Description:
Develop an endpoint to retrieve available modules. The endpoint will fetch a list of Module objects and return them to the client.
Acceptance Criteria:
Implement a GET action in the controller to retrieve all available modules asynchronously.
Return the result as a list of Module objects.
Response Handling:
Return a list of Module objects. Handle errors appropriately and return meaningful error messages if data retrieval fails.
Description:
Develop an endpoint to retrieve available modules. The endpoint will fetch a list of Module objects and return them to the client.
Acceptance Criteria:
Implement a GET action in the controller to retrieve all available modules asynchronously.
Return the result as a list of Module objects.
Response Handling:
Return a list of Module objects. Handle errors appropriately and return meaningful error messages if data retrieval fails.