Index route implementation (with tests)