Skip to content

Commit

Permalink
fix: routers
Browse files Browse the repository at this point in the history
  • Loading branch information
imstevez committed Sep 7, 2023
1 parent 102db6b commit f5153f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions s3/routers/routers.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,17 +55,17 @@ func (routers *Routers) Register() http.Handler {
bucket.Methods(http.MethodGet).Path("/{object:.+}").HandlerFunc(hs.GetObjectACLHandler).Queries("acl", "")
// GetObject
bucket.Methods(http.MethodGet).Path("/{object:.+}").HandlerFunc(hs.GetObjectHandler)
// ListObjectsV2
bucket.Methods(http.MethodGet).HandlerFunc(hs.ListObjectsV2Handler).Queries("list-type", "2")
// ListObjects
bucket.Methods(http.MethodGet).HandlerFunc(hs.ListObjectsHandler)

// todo DeleteObjects new
// bucket.Methods(http.MethodDelete).HandlerFunc(hs.DeleteObjectsHandler).Queries("delete", "")

//bucket...
// GetBucketACL
bucket.Methods(http.MethodGet).HandlerFunc(hs.GetBucketAclHandler).Queries("acl", "")
// ListObjectsV2
bucket.Methods(http.MethodGet).HandlerFunc(hs.ListObjectsV2Handler).Queries("list-type", "2")
// ListObjects
bucket.Methods(http.MethodGet).HandlerFunc(hs.ListObjectsHandler)
// PutBucketACL
bucket.Methods(http.MethodPut).HandlerFunc(hs.PutBucketAclHandler).Queries("acl", "")
// CreateBucket
Expand Down

0 comments on commit f5153f3

Please sign in to comment.