'/publish' end point using mongoid query.