getRoutes method

Future<Directory?> getRoutes()

Implementation

Future<Directory?> getRoutes() async {
  final root = await getRoot();

  if (root == null) {
    throw Exception('Failed to find project root');
  }

  return root.childDirectory('routes');
}