Genie Discord forum

Author Avatarrawjeev
8/24/2023, 7:44:07 AM

In Genie I want to stream an mp4 video file for a GET request to a route "/video"

  1. I define a route in routes.jl to handle a request
route("/video") do
  # How do I stream a video file from here?
  # The response should serve:
  # "Content-Type": "video/mp4", and 
  # "Content-Length":length_of_the_video
end

Please suggest.

It was easy to figure out from examples and docs, how to serve HTML, markdown etc.