#NEWLINE# def route( url , methods = ( Http . GET , ) , accepts = MediaType . WILDCARD , produces = None , cache = True ) : #NEWLINE# #INDENT# '\n    Main decorator for registering REST functions\n    ' #NEWLINE# def decorator( f ) : #NEWLINE# #INDENT# def wrap( * args , **kwargs ) : #NEWLINE# #INDENT# return f #NEWLINE# #UNINDENT# router = UrlRouter ( f , url , methods , accepts , produces , cache ) #NEWLINE# setattr ( wrap , 'corepostRequestRouter' , router ) #NEWLINE# return wrap #NEWLINE# #UNINDENT# return methods