docs: def route(self, url_rule, name=None, options=None):
          '''A decorator to add a route to a view. name is used to
          differentiate when there are multiple routes for a given view.'''
          # TODO: change options kwarg to defaults
          def decorator(f):
              view_name = name or f.__name__
              self.add_url_rule(url_rule, f, name=view_name, options=options)
              return f
          return decorator