agritheory / cloud_storage

S3 protocol storage for Frappe Applications - compatible with S3, Backblaze and DO Spaces
https://agritheory.com/documentation/cloud_storage
Other
9 stars 4 forks source link

Shorten outward-facing API paths #15

Closed agritheory closed 1 year ago

agritheory commented 1 year ago
# hooks.py
override_whitelisted_methods = {
    "share": "cloud_storage.cloud_storage.overrides.file.share?key={path}",
    "retrieve": "cloud_storage.cloud_storage.overrides.file.retrieve?key={path}",
}

Also refactor