Skip to content

Commit

Permalink
added deletion via signed url (#1569)
Browse files Browse the repository at this point in the history
  • Loading branch information
alanrichman committed Apr 23, 2024
1 parent c8f24ba commit fc007cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fakestorage/server.go
Expand Up @@ -316,6 +316,7 @@ func (s *Server) buildMuxer() {
// Signed URLs (upload and download)
handler.MatcherFunc(s.publicHostMatcher).Path("/{bucketName}/{objectName:.+}").Methods(http.MethodPost, http.MethodPut).HandlerFunc(jsonToHTTPHandler(s.insertObject))
handler.MatcherFunc(s.publicHostMatcher).Path("/{bucketName}/{objectName:.+}").Methods(http.MethodGet, http.MethodHead).HandlerFunc(s.getObject)
handler.MatcherFunc(s.publicHostMatcher).Path("/{bucketName}/{objectName:.+}").Methods(http.MethodDelete).HandlerFunc(jsonToHTTPHandler(s.deleteObject))
handler.Host(bucketHost).Path("/{objectName:.+}").Methods(http.MethodPost, http.MethodPut).HandlerFunc(jsonToHTTPHandler(s.insertObject))
handler.Host("{bucketName:.+}").Path("/{objectName:.+}").Methods(http.MethodPost, http.MethodPut).HandlerFunc(jsonToHTTPHandler(s.insertObject))

Expand Down

0 comments on commit fc007cb

Please sign in to comment.