Build index handler of resource