Browse Source

fix registration url

master
Jonathan Cobb 4 years ago
parent
commit
07cab63b61
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/admin.rs

+ 2
- 2
src/admin.rs View File

@@ -87,8 +87,8 @@ async fn handle_register(registration : AdminRegistration,


// PUT it and see if it worked // PUT it and see if it worked
let client = reqwest::Client::new(); let client = reqwest::Client::new();
let url = format!("https://{}/me/flexRouters", registration.bubble);
let url = format!("https://{}/api/me/flexRouters", registration.bubble);
println!("handle_register: registering ourself with {}", url);
match client.put(url.as_str()) match client.put(url.as_str())
.header(HEADER_BUBBLE_SESSION, registration.session) .header(HEADER_BUBBLE_SESSION, registration.session)
.json(&bubble_registration) .json(&bubble_registration)


Loading…
Cancel
Save