Custom route rejection end up in 405 Method not allowed

i am having the same problem i have two routes i am channing them route1 ~ route2
the problem is when i am hitting the route2 ,then route1 hanldeNotFoubd rejection got called how can i stop this please help