from flask import Blueprint, send_from_directory, session
from flask import current_app as app

# Blueprint Configuration
index_bp = Blueprint('index_bp', __name__)


@index_bp.route('/')
@index_bp.route('/index')
def index():
    session.clear()
    return send_from_directory(app.static_folder, 'index.html')


@app.errorhandler(404)
def not_found(e):
    return send_from_directory(app.static_folder, 'index.html')
