Refactoring route agp/matches by /matches