#NEWLINE# @ module . route ( '/browse' , defaults = { #NEWLINE# #INDENT# 'path' : '/' , #NEWLINE# #UNINDENT# } , methods = METHODS ) #NEWLINE# @ module . route ( '/browse/<path:path>' , methods = METHODS ) #NEWLINE# def browse( path ) : #NEWLINE# #INDENT# adapter = _request_ctx_stack . top . url_adapter #NEWLINE# g . methods = [ method for method in METHODS if adapter . test ( path , method ) ] #NEWLINE# if adapter . test ( path , request . method ) : #NEWLINE# #INDENT# after_this_request ( modify_response ) #NEWLINE# ( endpoint , kwargs ) = adapter . match ( path ) #NEWLINE# view_func = current_app . view_functions [ endpoint ] #NEWLINE# return view_func ( ** kwargs ) #NEWLINE# #UNINDENT# return render_template ( TEMPLATE , methods = g . methods )