pass router to routes