Start migration to postgresql and other minor fixes and improvements

This commit is contained in:
Lucas Mathews
2024-06-08 20:59:00 +02:00
parent 43ffea728c
commit c79f54eda7
16 changed files with 59 additions and 330 deletions

View File

@@ -20,7 +20,7 @@ from manager import log_event # Imports the log_event function from the manager
def create_app():
"""Creates the API using Connexion."""
app = connexion.FlaskApp(__name__)
app.add_api(CONFIG["api_file"]["name"])
app.add_api(CONFIG["server"]["api_file"])
flask_app = app.app
flask_app.config['SECRET_KEY'] = CONFIG["sessions"]["secret_key"]
@@ -34,7 +34,7 @@ def API():
app = create_app()
debug_value = CONFIG["server"]["debug"]
debug = False if debug_value.lower() == 'false' else True
app.run(host=CONFIG["server"]["listen_ip"], port=CONFIG["server"]["port"], debug=debug)
app.run(host=CONFIG["server"]["url"], debug=debug)
################
### Run Code ###