Updated path resolver to return correct view depend on request headers