summaryrefslogtreecommitdiff
path: root/makima/src/daemon/api/client.rs
diff options
context:
space:
mode:
authorsoryu <soryu@soryu.co>2026-01-16 12:23:49 +0000
committersoryu <soryu@soryu.co>2026-01-16 12:23:49 +0000
commit205ab8a223ddf6591a3e8bfc9108506502977c11 (patch)
treed768063acff233dbeea223d7b6ea69d7e3038300 /makima/src/daemon/api/client.rs
parent05931d19bc0c161d0177c3f983d0cd903d5e8ae3 (diff)
downloadsoryu-205ab8a223ddf6591a3e8bfc9108506502977c11.tar.gz
soryu-205ab8a223ddf6591a3e8bfc9108506502977c11.zip
Fixup: use default api.makima.jp URL and fix default branch detection
Also add checkpointing/history
Diffstat (limited to 'makima/src/daemon/api/client.rs')
-rw-r--r--makima/src/daemon/api/client.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/makima/src/daemon/api/client.rs b/makima/src/daemon/api/client.rs
index b27d606..2318d5a 100644
--- a/makima/src/daemon/api/client.rs
+++ b/makima/src/daemon/api/client.rs
@@ -42,7 +42,9 @@ impl ApiClient {
let url = format!("{}{}", self.base_url, path);
let response = self.client
.get(&url)
+ // Send both headers - server will try tool key first, then API key
.header("X-Makima-Tool-Key", &self.api_key)
+ .header("X-Makima-API-Key", &self.api_key)
.send()
.await?;
@@ -58,7 +60,9 @@ impl ApiClient {
let url = format!("{}{}", self.base_url, path);
let response = self.client
.post(&url)
+ // Send both headers - server will try tool key first, then API key
.header("X-Makima-Tool-Key", &self.api_key)
+ .header("X-Makima-API-Key", &self.api_key)
.header("Content-Type", "application/json")
.json(body)
.send()
@@ -72,7 +76,9 @@ impl ApiClient {
let url = format!("{}{}", self.base_url, path);
let response = self.client
.post(&url)
+ // Send both headers - server will try tool key first, then API key
.header("X-Makima-Tool-Key", &self.api_key)
+ .header("X-Makima-API-Key", &self.api_key)
.send()
.await?;
@@ -88,7 +94,9 @@ impl ApiClient {
let url = format!("{}{}", self.base_url, path);
let response = self.client
.put(&url)
+ // Send both headers - server will try tool key first, then API key
.header("X-Makima-Tool-Key", &self.api_key)
+ .header("X-Makima-API-Key", &self.api_key)
.header("Content-Type", "application/json")
.json(body)
.send()