def register_web_routes(application, register):
 def get_index_file():
  return template('index.html')
 def get_static_file(filename):
  return static_file(filename, root='./media')
 register.route('/', method='GET', name='get_index_file')(get_index_file)
 register.route('/media/<filename:path>', method='GET', name='get_static_file')(get_static_file)

def register_web_routes ( application , register ) : def get_index_file ( ) : return template ( 'index.html' ) def get_static_file ( filename ) : return static_file ( filename , root = './media' ) register . route ( '/' , method = 'GET' , name = 'get_index_file' ) ( get_index_file ) register . route ( '/media/<filename:path>' , method = 'GET' , name = 'get_static_file' ) ( get_static_file )
a helper method to register the default web routes of a single page application .