diff --git a/kotlin-runtime/ftl-generator/src/main/kotlin/xyz/block/ftl/generator/ModuleGenerator.kt b/kotlin-runtime/ftl-generator/src/main/kotlin/xyz/block/ftl/generator/ModuleGenerator.kt index c86e8ff1e8..5d01ce63d8 100644 --- a/kotlin-runtime/ftl-generator/src/main/kotlin/xyz/block/ftl/generator/ModuleGenerator.kt +++ b/kotlin-runtime/ftl-generator/src/main/kotlin/xyz/block/ftl/generator/ModuleGenerator.kt @@ -109,7 +109,7 @@ class ModuleGenerator() { metadata.ingress?.let { verbFunBuilder.addAnnotation( AnnotationSpec.builder(Ingress::class) - .addMember("%T", ClassName("xyz.block.ftl.Method", it.method)) + .addMember("%T", ClassName("xyz.block.ftl.Method", it.method.replaceBefore(".", ""))) .addMember("%S", it.path) .build() )