Skip to content
Snippets Groups Projects
Commit 5edaf5e0 authored by Tiago Brito's avatar Tiago Brito
Browse files

Added CORS to product.py

parent a56227f0
No related branches found
No related tags found
No related merge requests found
from flask import Blueprint, jsonify, request from flask import Blueprint, jsonify, request
from flask_cors import CORS
from .database import db_connection from .database import db_connection
product_bp = Blueprint('product', __name__) product_bp = Blueprint('product', __name__)
CORS(product_bp)
@product_bp.route('/products', methods=['POST']) @product_bp.route('/products', methods=['POST'])
def create_product(): def create_product():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment