Skip to content
  • Chris Bisnett's avatar
    7dd9916c
    Configure Active Storage route prefix · 7dd9916c
    Chris Bisnett authored
    Applications can configure the route prefix prepended to the Active
    Storage routes. By default this maintains the previous prefix
    `/rails/active_storage` but supports custom prefixes.
    
    Before this change the route for serving blobs is fixed to
    `/rails/active_storage/blobs/:signed_id/*filename`. After this change
    it's possible to configure the route to something like
    `/files/blobs/:signed_id/*filename`.
    7dd9916c
    Configure Active Storage route prefix
    Chris Bisnett authored
    Applications can configure the route prefix prepended to the Active
    Storage routes. By default this maintains the previous prefix
    `/rails/active_storage` but supports custom prefixes.
    
    Before this change the route for serving blobs is fixed to
    `/rails/active_storage/blobs/:signed_id/*filename`. After this change
    it's possible to configure the route to something like
    `/files/blobs/:signed_id/*filename`.
Loading