authenticatedGet method
Make authenticated HTTP GET request
Implementation
Future<Map<String, dynamic>> authenticatedGet(String endpoint) async {
await _ensureInitialized();
try {
final response = await http.get(
Uri.parse('$_apiBaseUrl/$endpoint'),
headers: getAuthHeaders(),
);
return _handleResponse(response);
} catch (e) {
OnairosDebugHelper.log('❌ Error in authenticated GET: $e');
rethrow;
}
}