def __init__()

in services/ui_backend_service/api/card.py [0:0]


    def __init__(self, app, db, cache=None):
        self.db = db
        self.cache = getattr(cache, "card_cache", None)
        app.router.add_route(
            "GET",
            "/flows/{flow_id}/runs/{run_number}/steps/{step_name}/tasks/{task_id}/cards",
            self.get_cards_list_for_task,
        )
        app.router.add_route(
            "GET",
            "/flows/{flow_id}/runs/{run_number}/steps/{step_name}/tasks/{task_id}/cards/{hash}",
            self.get_card_content_by_hash,
        )
        app.router.add_route(
            "GET",
            "/flows/{flow_id}/runs/{run_number}/steps/{step_name}/tasks/{task_id}/cards/{hash}/data",
            self.get_card_data_by_hash,
        )