Skip to content

Commit 6379022

Browse files
adigerberwing328
authored andcommitted
scala-play-server: fix API doc url (#3096)
1 parent ad06496 commit 6379022

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/openapi-generator/src/main/resources/scala-play-server/app/apiDocController.scala.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import play.api.mvc._
66
@Singleton
77
class ApiDocController @Inject()(cc: ControllerComponents) extends AbstractController(cc) {
88
def api: Action[AnyContent] = Action {
9-
Redirect("/assets/lib/swagger-ui/index.html?/url=/assets/openapi.json")
9+
Redirect("/assets/lib/swagger-ui/index.html?url=/assets/openapi.json")
1010
}
1111
}

samples/server/petstore/scala-play-server/app/api/ApiDocController.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import play.api.mvc._
66
@Singleton
77
class ApiDocController @Inject()(cc: ControllerComponents) extends AbstractController(cc) {
88
def api: Action[AnyContent] = Action {
9-
Redirect("/assets/lib/swagger-ui/index.html?/url=/assets/openapi.json")
9+
Redirect("/assets/lib/swagger-ui/index.html?url=/assets/openapi.json")
1010
}
1111
}

0 commit comments

Comments
 (0)