#NEWLINE# @ blueprint . route ( '/api/1/sources/<int:id>/process' , methods = [ 'POST' , 'PUT' ] ) #NEWLINE# def process( id ) : #NEWLINE# #INDENT# authz . require ( authz . source_write ( id ) ) #NEWLINE# source = obj_or_404 ( Source . by_id ( source ) ) #NEWLINE# analyze_source . delay ( source . id ) #NEWLINE# return jsonify ( { #NEWLINE# #INDENT# 'status' : 'ok' , #NEWLINE# #UNINDENT# } )