Skip to content

Commit

Permalink
Add support for copyTo via rewriteTo (#512)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaul authored Jun 15, 2021
1 parent 790a045 commit 729a26c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fakestorage/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ func (s *Server) buildMuxer() {
r.Path("/b/{bucketName}/o/{objectName:.+}/acl/{entity}").Methods("PUT").HandlerFunc(jsonToHTTPHandler(s.setObjectACL))
r.Path("/b/{bucketName}/o/{objectName:.+}").Methods("GET").HandlerFunc(s.getObject)
r.Path("/b/{bucketName}/o/{objectName:.+}").Methods("DELETE").HandlerFunc(jsonToHTTPHandler(s.deleteObject))
r.Path("/b/{sourceBucket}/o/{sourceObject:.+}/copyTo/b/{destinationBucket}/o/{destinationObject:.+}").HandlerFunc(jsonToHTTPHandler(s.rewriteObject))
r.Path("/b/{sourceBucket}/o/{sourceObject:.+}/rewriteTo/b/{destinationBucket}/o/{destinationObject:.+}").HandlerFunc(jsonToHTTPHandler(s.rewriteObject))
}

Expand Down

0 comments on commit 729a26c

Please sign in to comment.