default controller logic to handle get,post,put,delete