Implemented a controller to get links