Use getOption for AppRouter option processRoutes