Skip to content

Commit

Permalink
fix: decorator
Browse files Browse the repository at this point in the history
  • Loading branch information
Raul Castro committed Apr 18, 2024
1 parent be91783 commit ebb8900
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions api.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from flask import Flask, request, jsonify
from flask_cors import CORS
from flask_cors import CORS, cross_origin
from controllers import mainprices

api = Flask(__name__)
CORS(api)
cors=CORS(api)
api.config['CORS_HEADERS'] = 'Content-Type'
@api.route('/')
@cors_origin()
def get_generic():
Expand Down

0 comments on commit ebb8900

Please sign in to comment.