diff --git a/.env b/.env new file mode 100644 index 0000000..9fc5494 --- /dev/null +++ b/.env @@ -0,0 +1,5 @@ +DB_USERNAME=new_user +DB_PASSWORD=password +DB_HOST=localhost +DB_PORT=3306 +DB_NAME=UseCaseDB diff --git a/.gitignore b/.gitignore index c05f9c5..52cc6d0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ .venvManjaro/ app/__pycache__/ app/models/__pycache__/ -app/codes/__pycache__/ \ No newline at end of file +app/codes/__pycache__/ +migrations/* \ No newline at end of file diff --git a/server.py b/server.py index e3e6c05..69ed2ce 100644 --- a/server.py +++ b/server.py @@ -5,11 +5,11 @@ app = create_app() @app.route('/', methods = ['GET']) def index(): - userId = session.get('userId') - if userId: - return "test" - else: - return "test" + userId = session.get('userId') + if userId: + return "test" + else: + return "test" if __name__ == "__main__": app.run(debug=True, port="8080") \ No newline at end of file