Skip to content

Commit

Permalink
fix: Meili api key
Browse files Browse the repository at this point in the history
  • Loading branch information
LichtHund committed Jul 6, 2024
1 parent 07a2b2b commit 3b83880
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion backend/src/main/kotlin/Module.kt
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public fun Application.module() {
install(XForwardedHeaders)

install(Meili) {

this.apiKey = bearer
}

routing {
Expand Down
8 changes: 4 additions & 4 deletions backend/src/main/kotlin/meilisearch/MeiliPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 3b83880

Please sign in to comment.