예제 #1
0
def board_list() -> dict:
    """Get all boards."""
    if authentific(request.headers):
        response = UsingDB().get_all_boars()
        print(response)
        return response
    return Statuses().aut_error
예제 #2
0
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
예제 #3
0
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
예제 #4
0
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
예제 #5
0
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