added the pageController

This PR aims to implement a GET request methods to retrieve the data in JOSN format