getStatus method

Future<Response> getStatus()

Obtiene el estado del servidor

Implementation

Future<http.Response> getStatus() async {
  try {
    final url = Uri.parse('$_baseUrl/status');
    final headers = {'access-token': _apiKey};

    final response = await _client.get(url, headers: headers);

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