code: def expose(url="/", methods=("GET",)):
      
  
      def wrap(f):
          if not hasattr(f, "_urls"):
              f._urls = []
          f._urls.append((url, methods))
          return f
  
      return wrap
docs: Use this decorator to expose API endpoints on your API classes.
  
          :param url:
              Relative URL for the endpoint
          :param methods:
              Allowed HTTP methods. By default only GET is allowed.