Skip to content

Commit

Permalink
Merge pull request #440 from tsawada/patch-1
Browse files Browse the repository at this point in the history
generators: allow multiple services in Router
  • Loading branch information
mkurz authored Dec 21, 2023
2 parents 2ae000c + 624b149 commit e43b872
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class PlayScalaServerCodeGenerator extends ScalaCodeGenerator {
if (service.usePlayActions) b.setContent(RouterUsingActions(service, powerApis = false).body)
else b.setContent(Router(service, powerApis = false).body)

b.setName(s"${service.packageDir}/AbstractRouter.scala")
b.setName(s"${service.packageDir}/Abstract${service.name}Router.scala")
logger.info(s"Generating Play gRPC service play router for ${service.packageName}.${service.name}")
immutable.Seq(b.build)
}
Expand Down

0 comments on commit e43b872

Please sign in to comment.