Started on making functional unit tests for endpoints

This commit is contained in:
2024-02-05 19:19:29 +00:00
parent e45ec4b217
commit ee33965baf
9 changed files with 199 additions and 159 deletions

7
app.py
View File

@@ -3,12 +3,12 @@ from os import environ
from controllers.web.endpoints import blueprint
'''
Main entrypoint for Flask application.
Initialises any components that are needed at runtime such as the
Main entrypoint for Flask application.
Initialises any components that are needed at runtime such as the
Database manager...
'''
app = Flask(__name__)
app: Flask = Flask(__name__)
# Set app secret key to sign session cookies
secret_key = environ.get("APPSECRET")
@@ -24,4 +24,3 @@ app.register_blueprint(blueprint)
if __name__ == "__main__":
app.run(debug=True, host="0.0.0.0", port=8080)