Made it so using just a function for a method does an index route.