code: def expose(rule, **options):
      
      def decorator(f):
          if not hasattr(f, "urls"):
              f.urls = []
          if isinstance(rule, (list, tuple)):
              f.urls.extend(rule)
          else:
              f.urls.append((rule, options))
          return f
      return decorator
docs: Decorator to add an url rule to a function