code: def register_route(self, app):
          
          if "url" not in self.params["options"]:
              raise Exception("Component does not have a URL property")
  
          if not hasattr(self.route_func, "__call__"):
              raise Exception("No app route function supplied")
  
          app.add_url_rule(self.params["options"]["url"],
              self.params["options"]["url"],
              self.route_func)
docs: Register the api route function with the app.