Hi,
What are you using for authentication? AFAIK, Devise is the only one that has
route-level authentication, so you can wrap that around your `mount` line.
Alternatively, you can use the
rack_response plugin, which is lower-level than download_endpoint, and you can call it from your controller.
We plan to add support for download endpoint response to be generated from the controller, like *_endpoint plugins allow you to do.
Kind regards,
Janko