diff --git a/lib/core/services/api_client.dart b/lib/core/services/api_client.dart index 55f7bd9..e4697c9 100644 --- a/lib/core/services/api_client.dart +++ b/lib/core/services/api_client.dart @@ -70,13 +70,12 @@ class ApiClient { } /// Performs a GET request to the given endpoint. - Future get( - String endpoint, { - bool isBinary = false, - }) async { + Future get(String endpoint, {bool isBinary = false}) async { final url = Uri.parse('$baseUrl$endpoint'); - final response = - await http.get(url, headers: _buildHeaders(isBinary: isBinary)); + final response = await http.get( + url, + headers: _buildHeaders(isBinary: isBinary), + ); if (response.statusCode != 200) { _log.warning( @@ -93,10 +92,7 @@ class ApiClient { } /// Performs a POST request with JSON body. - Future post( - String endpoint, - Map body, - ) async { + Future post(String endpoint, Map body) async { final url = Uri.parse('$baseUrl$endpoint'); final response = await http.post(