#NEWLINE# def create_app( config_obj_dotted_path = None ) : #NEWLINE# #INDENT# app = Flask ( __name__ ) #NEWLINE# app . config . from_object ( DefaultConfig ) #NEWLINE# if ( config_obj_dotted_path is not None ) : #NEWLINE# #INDENT# app . config . from_object ( config_obj_dotted_path ) #NEWLINE# #UNINDENT# register_general_error_handler ( index , json_error_page ) #NEWLINE# for blueprint in BLUEPRINTS : #NEWLINE# #INDENT# app . register_blueprint ( blueprint ) #NEWLINE# #UNINDENT# @ app . route ( '/' ) #NEWLINE# @ corsify #NEWLINE# @ jsonify #NEWLINE# def index( ) : #NEWLINE# #INDENT# links = [ ] #NEWLINE# for rule in app . url_map . iter_rules ( ) : #NEWLINE# #INDENT# if str ( rule ) . startswith ( '/repos' ) : #NEWLINE# #INDENT# links . append ( str ( rule ) ) #NEWLINE# #UNINDENT# #UNINDENT# return links #NEWLINE# #UNINDENT# return app