@app.route('/users/<public_id>', methods=['DELETE'])
@cross_origin(supports_credentials=True)
@token_required
def delete_user(current_user, public_id):
    user = User.query.filter_by(public_id=public_id).first()
    if (not user):
        return (jsonify({'message': 'Usuário não encontrado'}), 400)
    db.session.delete(user)
    db.session.commit()
    return (jsonify({'message': 'Usuário apagado com sucesso!'}), 200)
@app.route('/users/<public_id>', methods=['DELETE'])
@cross_origin(supports_credentials=True)
@token_required
def delete_user(current_user, public_id):
    user = User.query.filter_by(public_id=public_id).first()
    if (not user):
        return (jsonify({'message': 'Usuário não encontrado'}), 400)
    db.session.delete(user)
    db.session.commit()
    return (jsonify({'message': 'Usuário apagado com sucesso!'}), 200)