Core function for making API requests It's generic, allowing the caller to specify the expected return type
The expected type of the response data
The API endpoint path (e.g., "/user/profile")
The query parameters for the request
A Promise that resolves to the response data of type T
Core function for making API requests It's generic, allowing the caller to specify the expected return type