#NEWLINE# @ route ( '<key>' , method = ( 'get' , 'options' ) ) #NEWLINE# def _context_path( self , request ) : #NEWLINE# #INDENT# if ( request . method == 'OPTIONS' ) : #NEWLINE# #INDENT# request . app . fire ( 'on_preflight' , request , methods = [ 'GET' ] ) #NEWLINE# return request . response #NEWLINE# #UNINDENT# ctx = get_context_files ( self . app ) #NEWLINE# src = ctx . get ( request . urlargs [ 'key' ] ) #NEWLINE# if ( not src ) : #NEWLINE# #INDENT# raise Http404 #NEWLINE# #UNINDENT# app = request . app #NEWLINE# content = get_reader ( app , src ) . read ( src ) #NEWLINE# return self . json ( request , content . json ( app ) )