diff options
author | Lars Wirzenius <liw@liw.fi> | 2022-04-06 09:51:31 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2022-04-06 09:51:31 +0300 |
commit | 6defd70a2df0975ee22b09018a9dc709a7933200 (patch) | |
tree | f161b7958c3e6975d0bc2dbdef2bf3175e4d6216 /src/client.rs | |
parent | 1c6ae813b00e46d2a8061fa480d1780124af1e64 (diff) | |
download | obnam2-6defd70a2df0975ee22b09018a9dc709a7933200.tar.gz |
feat! add chunk server API version to HTTP paths
What was /chunks is now /v1/chunks. This is the minimal step to start
supporting multiple API versions.
Also, /v1/chunks/foo/bar is no longer supported.
Sponsored-by: author
Diffstat (limited to 'src/client.rs')
-rw-r--r-- | src/client.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client.rs b/src/client.rs index 5b13cb7..c5d66c1 100644 --- a/src/client.rs +++ b/src/client.rs @@ -131,7 +131,7 @@ impl BackupClient { } fn chunks_url(&self) -> String { - format!("{}/chunks", self.base_url()) + format!("{}/v1/chunks", self.base_url()) } /// Does the server have a chunk? |