Skip to content
Snippets Groups Projects
Commit 35a6551c authored by Adrien Béraud's avatar Adrien Béraud
Browse files

server account manager: update path for devices

Change-Id: I5626dccfe6363f55c44633fb42559aefa25a6356
parent 6c58fb51
No related branches found
No related tags found
No related merge requests found
......@@ -34,6 +34,7 @@ using Request = dht::http::Request;
static const std::string PATH_AUTH = "/api/auth";
static const std::string PATH_DEVICE = PATH_AUTH + "/device";
static const std::string PATH_DEVICES = PATH_AUTH + "/devices";
constexpr const char* const HTTPS_PROTO {"https"};
......@@ -211,7 +212,7 @@ ServerAccountManager::syncDevices()
{
if (not creds_)
return;
const std::string url = managerHostname_ + PATH_DEVICE + "?username=" + creds_->username;
const std::string url = managerHostname_ + PATH_DEVICES + "?username=" + creds_->username;
JAMI_WARN("[Auth] syncDevices with: %s to %s", creds_->username.c_str(), url.c_str());
auto request = std::make_shared<Request>(*Manager::instance().ioContext(), url, logger_);
auto reqid = request->id();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment