route now takes the method in consideration