Skip to content

Commit

Permalink
Merge branch 'open-api-fix' into 'release-1.12'
Browse files Browse the repository at this point in the history
Swagger fix

See merge request waves-enterprise/open-source-node!52
  • Loading branch information
Artemiy Pospelov committed Dec 29, 2022
2 parents ba5b1bd + f40b2c2 commit 0e1e172
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ class CompositeHttpService(private val routes: Seq[ApiRoute],
pathEndOrSingleSlash {
redirect("/api-docs/index.html", StatusCodes.PermanentRedirect)
} ~ (path("open-api.json") & get) {
customSwaggerRoute.getOrElse(getFromResource("open-api.json"))
customSwaggerRoute.getOrElse(getFromResource("open-api-base.json"))
} ~
getFromResourceDirectory("swagger-ui") ~
getFromResource("open-api.json")
getFromResource("open-api-base.json")
} ~ options {
respondWithDefaultHeaders(`Access-Control-Allow-Credentials`(true),
`Access-Control-Allow-Headers`(headers),
Expand Down

0 comments on commit 0e1e172

Please sign in to comment.