fixed issues to let it run on server

This commit is contained in:
Computerboer
2024-10-14 00:42:46 +02:00
parent d295f18226
commit e066106585
3 changed files with 8 additions and 2 deletions

2
app.py
View File

@@ -7,7 +7,7 @@ from utils.auctionutils import getAuctionlocations
from models.location import JsonEncoder
app = Flask(__name__)
CORS(app, resources={r"/*": {"origins": ["http://localhost:4200","https://auctionviewer.ikbenhenk.nl", "https://victorious-bay-0d278c903.3.azurestaticapps.net"]}})
CORS(app, resources={r"/*": {"origins": ["http://localhost:4200","https://auctionviewer.ikbenhenk.nl"]}})
application = app # our hosting requires application in passenger_wsgi
@app.route("/")