add get method for index route