mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-21 09:58:26 +00:00
Create a simple client for joex in its api module
This client can be used within the backend app and later in other modules. The `OJoex` object is replaced with a better implementation where the http client is initialized once on app start.
This commit is contained in:
@ -260,7 +260,8 @@ val joexapi = project.in(file("modules/joexapi")).
|
||||
settings(
|
||||
name := "docspell-joexapi",
|
||||
libraryDependencies ++=
|
||||
Dependencies.circe,
|
||||
Dependencies.circe ++
|
||||
Dependencies.http4sClient,
|
||||
openapiTargetLanguage := Language.Scala,
|
||||
openapiPackage := Pkg("docspell.joexapi.model"),
|
||||
openapiSpec := (Compile/resourceDirectory).value/"joex-openapi.yml"
|
||||
@ -302,7 +303,7 @@ val backend = project.in(file("modules/backend")).
|
||||
Dependencies.bcrypt ++
|
||||
Dependencies.http4sClient ++
|
||||
Dependencies.emil
|
||||
).dependsOn(store)
|
||||
).dependsOn(store, joexapi)
|
||||
|
||||
val webapp = project.in(file("modules/webapp")).
|
||||
disablePlugins(RevolverPlugin).
|
||||
|
Reference in New Issue
Block a user