Moves search route to its own file