routes function

void routes(
  1. String project,
  2. String template
)

generate template for routes

Implementation

void routes(String project, String template) {
  String dir = '$project/lib/routes';

  switch (template) {
    case 'get':
    case 'getx':
      _routesGetx(project, dir);
      break;
    default:
      _routesDefault(project, dir);
      break;
  }
}