/table-buckets
This commit is contained in:
@@ -14,7 +14,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
TablesPath = "/tables"
|
TablesPath = "/table-buckets"
|
||||||
DefaultAccountID = "000000000000"
|
DefaultAccountID = "000000000000"
|
||||||
DefaultRegion = "us-east-1"
|
DefaultRegion = "us-east-1"
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ func (h *S3TablesHandler) extractResourceOwnerAndBucket(
|
|||||||
resourcePath string,
|
resourcePath string,
|
||||||
rType ResourceType,
|
rType ResourceType,
|
||||||
) (ownerAccountID, bucketName string, err error) {
|
) (ownerAccountID, bucketName string, err error) {
|
||||||
// Extract bucket name from resource path (format: /tables/{bucket}/... for both tables and buckets)
|
// Extract bucket name from resource path (format: /table-buckets/{bucket}/... for both tables and buckets)
|
||||||
parts := strings.Split(strings.Trim(resourcePath, "/"), "/")
|
parts := strings.Split(strings.Trim(resourcePath, "/"), "/")
|
||||||
if len(parts) >= 2 {
|
if len(parts) >= 2 {
|
||||||
bucketName = parts[1]
|
bucketName = parts[1]
|
||||||
|
|||||||
Reference in New Issue
Block a user