
from flask import Blueprint, jsonify, request, render_template

home_routes = Blueprint("home_routes", __name__)

    
@home_routes.route("/")
def index():
    users = User.query.all()
    return render_template('base.html', title='Home',
                                users=users)

@home_routes.route("/about")
def about():
    return "About Me"

@home_routes.route('/reset')
def reset():
    DB.drop_all()
    DB.create_all()
    return render_template('base.html', title='Reset', users=[])

# # Add config for database
# app.config['SQLALCHEMY_DATABASE_URI'] = 'sqlite:///db.sqlite3'

# # stop tracking modifications on sqlalchemy config
# app.config['SQLALCHEMY_TRACK_MODIFICATIONS'] = False

# # ? app.config["TWITTER_API_CLIENT"] = twitter

# # Have the database know about the app
# DB.init_app(app)
[((4, 14, 4, 48), 'flask.Blueprint', 'Blueprint', ({(4, 24, 4, 37): '"""home_routes"""', (4, 39, 4, 47): '__name__'}, {}), "('home_routes', __name__)", False, 'from flask import Blueprint, jsonify, request, render_template\n'), ((10, 11, 11, 44), 'flask.render_template', 'render_template', (), '', False, 'from flask import Blueprint, jsonify, request, render_template\n'), ((21, 11, 21, 64), 'flask.render_template', 'render_template', (), '', False, 'from flask import Blueprint, jsonify, request, render_template\n')]