Skip to content

Commit

Permalink
fix: db data
Browse files Browse the repository at this point in the history
  • Loading branch information
alguadam committed Oct 2, 2023
1 parent 46fb5f9 commit 3767184
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions iebank_api/routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,16 @@ def hello_world():
@app.route('/skull', methods=['GET'])
def skull():
text = 'Hi! This is the BACKEND SKULL! 💀 '
text = text +'<br/>Database URL:' + db.session.bind.url.database
if db.session.bind.url.host:
text = text +'<br/>Database host:' + db.session.bind.url.host
if db.session.bind.url.port:
text = text +'<br/>Database port:' + db.session.bind.url.port
if db.session.bind.url.username:
text = text +'<br/>Database user:' + db.session.bind.url.username
if db.session.bind.url.password:
text = text +'<br/>Database password:' + db.session.bind.url.password

text = text +'<br/>Database URL:' + db.engine.url.database
if db.engine.url.host:
text = text +'<br/>Database host:' + db.engine.url.host
if db.engine.url.port:
text = text +'<br/>Database port:' + db.engine.url.port
if db.engine.url.username:
text = text +'<br/>Database user:' + db.engine.url.username
if db.engine.url.password:
text = text +'<br/>Database password:' + db.engine.url.password
return text


Expand Down

0 comments on commit 3767184

Please sign in to comment.