<s> from flask import Flask , g <EOL> from flask_htauth import HTAuth , authenticated <EOL> def create_app ( ** config ) : <EOL> app = Flask ( __name__ ) <EOL> app . config . update ( config ) <EOL> app . config [ '<STR_LIT>' ] = True <EOL> htauth = HTAuth ( app ) <EOL> @ app . route ( '<STR_LIT:/>' ) <EOL> def app_index ( ) : <EOL> return '<STR_LIT>' <EOL> @ app . route ( '<STR_LIT>' ) <EOL> @ authenticated <EOL> def app_secret ( ) : <EOL> return '<STR_LIT>' + g . htauth_user + '<STR_LIT:!>' <EOL> return app </s>
