web_services: Refactor to remove dependency on Core.
This commit is contained in:
parent
9f0da33c33
commit
04bd0c957e
5 changed files with 36 additions and 21 deletions
|
@ -3,7 +3,6 @@
|
|||
// Refer to the license.txt file included.
|
||||
|
||||
#include "common/assert.h"
|
||||
#include "core/settings.h"
|
||||
#include "web_service/telemetry_json.h"
|
||||
#include "web_service/web_backend.h"
|
||||
|
||||
|
@ -81,7 +80,7 @@ void TelemetryJson::Complete() {
|
|||
SerializeSection(Telemetry::FieldType::UserFeedback, "UserFeedback");
|
||||
SerializeSection(Telemetry::FieldType::UserConfig, "UserConfig");
|
||||
SerializeSection(Telemetry::FieldType::UserSystem, "UserSystem");
|
||||
PostJson(Settings::values.telemetry_endpoint_url, TopSection().dump());
|
||||
PostJson(endpoint_url, TopSection().dump(), true, username, token);
|
||||
}
|
||||
|
||||
} // namespace WebService
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue