Compare commits
1 Commits
331f33286d
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b87145654a |
5
.env
Normal file
5
.env
Normal file
@@ -0,0 +1,5 @@
|
||||
DB_USERNAME=new_user
|
||||
DB_PASSWORD=password
|
||||
DB_HOST=localhost
|
||||
DB_PORT=3306
|
||||
DB_NAME=UseCaseDB
|
||||
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
||||
app/__pycache__/
|
||||
app/models/__pycache__/
|
||||
app/codes/__pycache__/
|
||||
migrations/*
|
||||
10
server.py
10
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")
|
||||
Reference in New Issue
Block a user