When the user accesses the secrets.html page, they should be able to download a secret file. The file is located in the starting project:
static > files > cheat_sheet.pdf
In order to do this, we need to use a method from Flask called send_from_directory()
.
1. First go into the secrets.html page and make the anchor tag make a GET request to your server at the path /download
2. In the download route in the main.py, use the documentation for send_from_directory()
to download the cheat_sheet.pdf file when the user clicks on the "Download Your File" button.
https://flask.palletsprojects.com/en/2.3.x/api/#flask.send_from_directory
This is what should happen: