support route reject by dirname