added a get route for index.