[XAPID-999] change signature endpoint based on new specs. fix blobs local endpoint
diff --git a/api.go b/api.go
index c0a6ccf..ea68684 100644
--- a/api.go
+++ b/api.go
@@ -356,7 +356,7 @@
if blobId == "" {
return ""
}
- return getHttpHost() + "/" + url.PathEscape(blobId)
+ return getHttpHost() + "/blobs/" + url.PathEscape(blobId)
}
func convertTime(t string) string {
diff --git a/bundle.go b/bundle.go
index 10e1632..7b09cd2 100644
--- a/bundle.go
+++ b/bundle.go
@@ -24,10 +24,11 @@
"path"
"sync/atomic"
"time"
+ "strings"
)
const (
- BLOBSTORE_URI = "/v1/blobstore/signeduri"
+ BLOBSTORE_URI = "/v1/blobs/{BLOB_ID}/signedurl"
)
type bundleManagerInterface interface {
@@ -189,7 +190,7 @@
log.Panicf("bad url value for config %s: %s", blobUri, err)
}
- blobUri.Path += BLOBSTORE_URI
+ blobUri.Path = strings.Replace(BLOBSTORE_URI, "{BLOB_ID}",blobId, 1)
parameters := url.Values{}
parameters.Add("action", "GET")
parameters.Add("key", blobId)