Exercises
In the Goldcrest.Controller
module, we have added the ability to render
a JSON response and redirect
a request to a different URL, but there’s a lot more we could add to that module.
- How would you go about implementing the
send_file/2
function? This is just a thought exercise since it’s not straightforward to implement it. - What other functions should we add to the
Goldcrest.Controller
module?