[breaking] Include /v1/ in the sync-server paths

This is an incompatible change to the sync-server protocol.
This commit is contained in:
Dustin J. Mitchell 2021-05-14 12:51:24 -04:00
parent febe6d8b68
commit 373cef9d33
4 changed files with 16 additions and 13 deletions

View file

@ -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