getRules method

Future<Response> getRules(
  1. String hashStr
)

Obtiene reglas por hash

Implementation

Future<http.Response> getRules(String hashStr) async {
  try {
    final url = Uri.parse('$_baseUrl/rules/$hashStr');

    final response = await _client.get(url);

    ObslyLogger.debug('Get rules response: ${response.statusCode}');
    return response;
  } catch (e) {
    ObslyLogger.error('Error getting rules: $e');
    rethrow;
  }
}