<s> import flask <EOL> from opencenter . webapp import generic <EOL> object_type = '<STR_LIT>' <EOL> bp = flask . Blueprint ( object_type , __name__ ) <EOL> @ bp . route ( '<STR_LIT:/>' , methods = [ '<STR_LIT:GET>' , '<STR_LIT:POST>' ] ) <EOL> def list ( ) : <EOL> return generic . list ( object_type ) <EOL> @ bp . route ( '<STR_LIT>' , methods = [ '<STR_LIT:GET>' , '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> def by_id ( object_id ) : <EOL> return generic . object_by_id ( object_type , object_id ) </s>
