Skip to content

Commit

Permalink
update 1.5 sync urls juruen#259
Browse files Browse the repository at this point in the history
  • Loading branch information
ddvk committed Oct 6, 2022
1 parent f3599d1 commit 6116680
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/url.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ var SyncComplete string
func init() {
docHost := "https://document-storage-production-dot-remarkable-production.appspot.com"
authHost := "https://webapp-production-dot-remarkable-production.appspot.com"
blobHost := "https://rm-blob-storage-prod.appspot.com"
syncHost := "https://internal.cloud.remarkable.com"

host := os.Getenv("RMAPI_DOC")
if host != "" {
Expand All @@ -33,7 +33,7 @@ func init() {
if host != "" {
authHost = host
docHost = host
blobHost = host
syncHost = host
}

NewTokenDevice = authHost + "/token/json/2/device/new"
Expand All @@ -43,7 +43,7 @@ func init() {
UploadRequest = docHost + "/document-storage/json/2/upload/request"
DeleteEntry = docHost + "/document-storage/json/2/delete"

UploadBlob = blobHost + "/api/v1/signed-urls/uploads"
DownloadBlob = blobHost + "/api/v1/signed-urls/downloads"
SyncComplete = blobHost + "/api/v1/sync-complete"
UploadBlob = syncHost + "/sync/v2/signed-urls/uploads"
DownloadBlob = syncHost + "/sync/v2/signed-urls/downloads"
SyncComplete = syncHost + "/sync/v2/sync-complete"
}

0 comments on commit 6116680

Please sign in to comment.