addRoutes method

void addRoutes(
  1. List<GetPage> getPages
)

Implementation

void addRoutes(List<GetPage> getPages) {
  for (final route in getPages) {
    addRoute(
      Route(
        route.method,
        route.path,
        route.page!(),
        binding: route.binding,
        needAuth: route.needAuth,
      ),
    );
  }
}