import os from flask import jsonify from sqlalchemy import inspect def register_route(app,db): @app.route("/") def hello_world(): return "

Hello, World!

" @app.route('/user/') @app.route('/user/') def show_user_profile(username=None): test = os.getenv("MY_KEY") if username: return f"

Hello, Mr {username}! You are the man.

{test}" return "

Hello, user!

" @app.route('/table') def list_table(): inspector = inspect(db.engine) tables = inspector.get_table_names() return jsonify(tables)