title: Flask app route for paths that start with X
body: <p>I am a beginner with <strong>Flask</strong> and <strong>python</strong>. I want to create a handler function for paths that start with "/favicon". For example the following should be handled:</p>
  
  <ul>
  <li>/favicon</li>
  <li>/faviconFOO</li>
  <li>/favicon_bar</li>
  <li>/favicon/buzz</li>
  <li>/favicon1337</li>
  </ul>
  
  <p>The following should not be handled:</p>
  
  <ul>
  <li>/favico</li>
  <li>/favicoN</li>
  <li>/whatever</li>
  </ul>
  
  <p>If Flask supporeted wildcards, it would be "/favicon*"</p>
  
  <p>EDIT: I don't need support for regular expressions.</p>
  
  <p>How can I do this?</p>