class Navigation:
    def __init__(self):
        self.items = []

    def route(self, text: str, permissions: str | None = None):
        def decorator(func):
            self.items.append({"function": func.__name__, "text": text, "permissions": permissions})
            return func

        return decorator

    def get(self):
        return self.items


nav = Navigation()
