refactor(profile): update ProfileRepository to include MockRef for improved testing and enhance error handling in API calls
This commit is contained in:
@@ -24,7 +24,7 @@ class ApiClient {
|
||||
if (token != null) 'Authorization': 'Bearer $token',
|
||||
};
|
||||
|
||||
Future<dynamic> getJson(String path, {String? token}) async {
|
||||
Future<Map<String, dynamic>> getJson(String path, {String? token}) async {
|
||||
final response = await _client.get(
|
||||
Uri.parse('$baseUrl$path'),
|
||||
headers: _headers(token: token),
|
||||
|
||||
Reference in New Issue
Block a user