[CDF core-refactor][CDF 5] fix /viewAction endpoint