We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a157f05 commit 73cea12Copy full SHA for 73cea12
src/betterproto/plugin/models.py
@@ -638,7 +638,10 @@ def proto_name(self) -> str:
638
639
@property
640
def route(self) -> str:
641
- return f"/{self.output_file.package}.{self.parent.proto_name}/{self.proto_name}"
+ package_part = (
642
+ f"{self.output_file.package}." if self.output_file.package else ""
643
+ )
644
+ return f"/{package_part}{self.parent.proto_name}/{self.proto_name}"
645
646
647
def py_input_message(self) -> Optional[MessageCompiler]:
0 commit comments