Skip to content

Commit

Permalink
Merge pull request #27 from theiterators/feature/pekko
Browse files Browse the repository at this point in the history
Pekko support
  • Loading branch information
luksow authored Feb 26, 2024
2 parents a566bd8 + 91cb317 commit f9f94a0
Show file tree
Hide file tree
Showing 33 changed files with 572 additions and 586 deletions.
21 changes: 17 additions & 4 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -1,4 +1,17 @@
style = defaultWithAlign
maxColumn = 139
assumeStandardLibraryStripMargin = true
includeCurlyBraceInSelectChains = true
version = 3.7.17

runner.dialect = scala213
align.arrowEnumeratorGenerator = true
align.openParenCallSite = false
align.tokens = [ "=>", "=", "<-", "extends", "%", "%%", "->" ]
newlines.alwaysBeforeElseAfterCurlyIf = false
maxColumn = 150
rewrite.rules = [PreferCurlyFors, RedundantBraces, RedundantParens]
spaces {
inImportCurlyBraces = false
}
verticalMultiline.atDefnSite = true
verticalMultiline.arityThreshold = 3
verticalMultiline.newlineAfterOpenParen = true

style = IntelliJ
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ object BaklavaRoutes {
} ~ pathPrefix("swagger") {
get(complete(swaggerRedirectHttpResponse))
}
} else
}
else
RouteDirectives.reject
}

Expand Down Expand Up @@ -57,7 +58,7 @@ object BaklavaRoutes {
HttpResponse(status = StatusCodes.SeeOther, headers = Location(s"$swaggerUiUrl?url=$swaggerDocsUrl&layout=BaseLayout") :: Nil)
}

private lazy val swaggerWebJar: Route = {
private lazy val swaggerWebJar: Route =
extractUnmatchedPath { path =>
Try((new WebJarAssetLocator).getFullPath("swagger-ui", path.toString)) match {
case Success(fullPath) =>
Expand All @@ -68,14 +69,14 @@ object BaklavaRoutes {
failWith(e)
}
}
}

private case class Config(enabled: Boolean,
basicAuthUser: Option[String],
basicAuthPassword: Option[String],
fileSystemPath: String,
publicPathPrefix: String,
apiPublicPathPrefix: String)
private case class Config(
enabled: Boolean,
basicAuthUser: Option[String],
basicAuthPassword: Option[String],
fileSystemPath: String,
publicPathPrefix: String,
apiPublicPathPrefix: String)

private object Config {
def apply(config: com.typesafe.config.Config): Config = {
Expand Down
Loading

0 comments on commit f9f94a0

Please sign in to comment.