Pass router to avoider middleware