Implemented the structure of index route.