From 3b838805d32a11ffaff32a268f64613e5d689921 Mon Sep 17 00:00:00 2001 From: Matt Date: Sat, 6 Jul 2024 22:05:02 +0100 Subject: [PATCH] fix: Meili api key --- backend/src/main/kotlin/Module.kt | 2 +- backend/src/main/kotlin/meilisearch/MeiliPlugin.kt | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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) }