content method

  1. @override
String content()
override

Implementation

@override
String content() =>
    '''
import 'package:revali_router/revali_router.dart';

// Learn more about Controllers at https://www.revali.dev/constructs/revali_server/core/controllers
@Controller('${_name.toPathCase()}')
class ${_name.toPascalCase()}Controller {
const ${_name.toPascalCase()}Controller();

@Get()
String handle() {
  return 'Hello world!';
}
}
''';