def board_list() -> dict: """Get all boards.""" if authentific(request.headers): response = UsingDB().get_all_boars() print(response) return response return Statuses().aut_error
def card_delete() -> dict: """For delete a card.""" if authentific(request.headers): data = request.json response = UsingDB().card_delete(data) print(response) return response return Statuses().aut_error
def colum_info() -> dict: """Get info about a task.""" if authentific(request.headers): data = request.json response = UsingDB().column_info(data) print(response) return response return Statuses().aut_error
def card_update() -> dict: """For update a card.""" if authentific(request.headers): data = request.json head = request.headers response = UsingDB().update_card(data, head) print(response) return response return Statuses().aut_error
def board_create() -> dict: """For create a snew board.""" if authentific(request.headers): data = request.json head = request.headers reponse = UsingDB().create_board(data, head) print(reponse) return reponse return Statuses().aut_error