@app.route('/products/<product_id>', methods=['GET'])
@cross_origin(supports_credentials=True)
def get_product(product_id):
    product = Product.query.filter_by(product_id=product_id).first()
    if (not product):
        return (jsonify({'message': 'Produto não encontrado!'}), 400)
    product_schema = ProductSchema()
    output = product_schema.dump(product)
    return (jsonify(output), 200)
@app.route('/products/<product_id>', methods=['GET'])
@cross_origin(supports_credentials=True)
def get_product(product_id):
    product = Product.query.filter_by(product_id=product_id).first()
    if (not product):
        return (jsonify({'message': 'Produto não encontrado!'}), 400)
    product_schema = ProductSchema()
    output = product_schema.dump(product)
    return (jsonify(output), 200)