ruby - Serving large static files with Sinatra -
sinatra can serve files static directory set :public, 'your_directory'
command, how can replicate in new route?
importantly, new route needs respect byte ranges too! ideas? feel should able leverage present code in static serve part of sinatra.
i think can use send_file
(see here) - if has other suggestions have open ears!
Comments
Post a Comment