Skip to content

Commit

Permalink
Merge pull request #17 from justin-hsieh/cors_setup
Browse files Browse the repository at this point in the history
Cors setup
  • Loading branch information
justin-hsieh authored Oct 10, 2023
2 parents 433b29c + 105946a commit 2f0b55d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
# Third-party imports
from flask import Flask, jsonify, request
import json
from flask_cors import CORS, cross_origin
# from decouple import config
from fantasy_app.functions import get_current_matchups, current_week, get_most_position_points, order_positions_by_points
from fantasy_app.contest_list import contests


# app.config['SQLALCHEMY_DATABASE_URI'] = config('DATABASE_URL')
app = Flask(__name__)

CORS(app, supports_credentials=True)
# stop tracking modifications
# app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False

Expand Down
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ dill==0.3.5.1
docopt==0.6.2
espn-api==0.21.0
Flask==2.2.2
Flask-Cors==4.0.0
gunicorn==20.1.0
idna==3.3
importlib-metadata==4.12.0
Expand Down

0 comments on commit 2f0b55d

Please sign in to comment.