flirror/modules/__init__.py
def view(self, **options: Any) -> Callable:
        """
        Decorate a function to register it as view for this module.

        This is the same as Flask's route() decorator, but ensures that the
        rule is always set to "/".
        """

        def decorator(f):
            rule = "/"
            endpoint = options.pop("endpoint", f.__name__)
            self.add_url_rule(rule, endpoint, f, **options)
            return f

        return decorator

        Decorate a function to register it as view for this module.

        This is the same as Flask's route() decorator, but ensures that the
        rule is always set to "/".
        
Decorate a function to register it as view for this module.
This is the same as Flask's route() decorator, but ensures that the
rule is always set to "/".
Decorate a function to register it as view for this module . This is the same as Flask ' s route () decorator but ensures that the rule is always set to " / " .
def view(self, **options: Any) -> Callable:
        def decorator(f):
            rule = "/"
            endpoint = options.pop("endpoint", f.__name__)
            self.add_url_rule(rule, endpoint, f, **options)
            return f
        return decorator
def view ( self , ** options : Any ) -> Callable : def decorator ( f ) : rule = "/" endpoint = options . pop ( "endpoint" , f . __name__ ) self . add_url_rule ( rule , endpoint , f , ** options ) return f return decorator
Decorate a function to register it as view for this module.
Decorate a function to register it as view for this module .
"""
        Decorate a function to register it as view for this module.

        This is the same as Flask's route() decorator, but ensures that the
        rule is always set to "/".
        """
self
options
Any