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/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)