Skip to content

Cleanup

Pre-release
Pre-release
Compare
Choose a tag to compare
@anthonycastelli anthonycastelli released this 28 Apr 17:53
· 13 commits to master since this release

Clean up a few files and make sure things actually work as expected.

DELETE

return req.withStorage(to: .s3) { storage in
   return try storage.delete(object: "path/to/file.png", in: "bucket", on: req)
}

PUT

return req.withStorage(to: .s3) { storage in
   return try storage.create(object: "path/to/file.png", in: "bucket", with: data, metadata: nil, on: req)
}