diff --git a/backend/src/main/kotlin/Module.kt b/backend/src/main/kotlin/Module.kt index 994693c..ce0c956 100644 --- a/backend/src/main/kotlin/Module.kt +++ b/backend/src/main/kotlin/Module.kt @@ -70,7 +70,7 @@ public fun Application.module() { install(XForwardedHeaders) install(Meili) { - + this.apiKey = bearer } routing { diff --git a/backend/src/main/kotlin/meilisearch/MeiliPlugin.kt b/backend/src/main/kotlin/meilisearch/MeiliPlugin.kt index 2f87c95..7d86cd1 100644 --- a/backend/src/main/kotlin/meilisearch/MeiliPlugin.kt +++ b/backend/src/main/kotlin/meilisearch/MeiliPlugin.kt @@ -14,10 +14,10 @@ public class Meili(config: Configuration) { public val client: MeiliClient = config.createClient() public class Configuration { - private var host: String = "0.0.0.0" - private var port: Int = 7700 - private var apiKey: String = "masterKey" - private var protocol: URLProtocol = URLProtocol.HTTP + public var host: String = "0.0.0.0" + public var port: Int = 7700 + public var apiKey: String = "masterKey" + public var protocol: URLProtocol = URLProtocol.HTTP internal fun createClient() = MeiliClient(host, port, apiKey, protocol) }