title: How to access local file in Flask?
body: <p>I want to access the local file using a hyperlink from the web using Flask. My file directory and what I have tried is as follows. </p>
  
  <p>File directory:</p>
  
  <pre><code>-Flask
       -static/
           --some js
       -template/
           --some HTML
       -logs/
           --log1.log
           --log2.log
           --...
       app.py
  </code></pre>
  
  <p>I access the file in HTML as </p>
  
  <pre><code> localhost:port/logs/log1.log
  </code></pre>
  
  <p>But the web gives me a 404. </p>
  
  <p>How could I access the file? I am not very sure about the route in Flask. Could you give me some reference?</p>
  
  <p>Thanks.</p>