mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-24 18:06:42 +02:00
[breaking] Include /v1/ in the sync-server paths
This is an incompatible change to the sync-server protocol.
This commit is contained in:
parent
febe6d8b68
commit
373cef9d33
4 changed files with 16 additions and 13 deletions
|
@ -49,7 +49,10 @@ impl Server for RemoteServer {
|
|||
parent_version_id: VersionId,
|
||||
history_segment: HistorySegment,
|
||||
) -> anyhow::Result<AddVersionResult> {
|
||||
let url = format!("{}/client/add-version/{}", self.origin, parent_version_id);
|
||||
let url = format!(
|
||||
"{}/v1/client/add-version/{}",
|
||||
self.origin, parent_version_id
|
||||
);
|
||||
let history_cleartext = HistoryCleartext {
|
||||
parent_version_id,
|
||||
history_segment,
|
||||
|
@ -82,7 +85,7 @@ impl Server for RemoteServer {
|
|||
parent_version_id: VersionId,
|
||||
) -> anyhow::Result<GetVersionResult> {
|
||||
let url = format!(
|
||||
"{}/client/get-child-version/{}",
|
||||
"{}/v1/client/get-child-version/{}",
|
||||
self.origin, parent_version_id
|
||||
);
|
||||
match self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue