Exemplo n.º 1
0
def add_comment(defendant=None):
    """ Add comment to defendant
    """
    body = request.get_json()
    code, resp = CommentsController.create(body, defendant_id=defendant, user_id=g.user.id)
    return code, resp
Exemplo n.º 2
0
def add_comment(ticket=None):
    """ Add comment to ticket
    """
    body = request.get_json()
    code, resp = CommentsController.create(body, ticket_id=ticket, user_id=g.user.id)
    return code, resp