Skip to content

Commit

Permalink
switch routername to avoid collisions
Browse files Browse the repository at this point in the history
  • Loading branch information
Daxten committed Feb 26, 2017
1 parent 29efb29 commit 1b4db25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion codegen/src/main/scala/app/SwaggerCodegen.scala
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ object SwaggerCodegen extends App {
else Seq.empty)
} {
val packageName = f.nameWithoutExtension.toLowerCase.takeWhile(_ != '_')
val routerName = swaggerTag.toUpperCamelCase
val routerName = swaggerTag.toUpperCamelCase + "Router"
println(s"- Running Codegen for Swagger Tag $swaggerTag")
val target = file"server/app/controllers/swagger/$apiVersion/$packageName/$routerName.scala"

Expand Down

0 comments on commit 1b4db25

Please sign in to comment.