code: def fmt_routes(bottle_app):
      
      routes = [(r.method, r.rule) for r in bottle_app.routes]
      if not routes:
          return
      string = 'Routes:\n'
      string += fmt_pairs(routes, sort_key=operator.itemgetter(1))
      return string
docs: Return a pretty formatted string of the list of routes.