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

Added CORS to category.py

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