old_contents: # -*- coding: utf-8 -*-
  from __future__ import absolute_import, division, print_function, unicode_literals
  
  from ava.webfront import route, static_file
  
  
  
  @route('/')
  @route('/index.html')
  def serve_root():
      return static_file(b'index.html')
  
  
  @route('/favicon.ico')
  def serve_favicon():
      return static_file(b'favicon.ico')
  
  
  @route('/static/<filepath:path>')
  def serve_static(filepath):
      return static_file(filepath)
  
  
new_contents: # -*- coding: utf-8 -*-
  from __future__ import absolute_import, division, print_function, unicode_literals
  
  from ava.webfront import route, static_file
  
  
  @route('/')
  @route('/index.html')
  def serve_root():
      return static_file(b'index.html')
  
  
  @route('/favicon.ico')
  def serve_favicon():
      return static_file(b'favicon.ico')
  
  
  @route('/static/<filepath:path>')
  def serve_static(filepath):
      return static_file(filepath)
  
  
subject: revise static_file to simply the interface