From 5d900e903276fceab249bb223e067ca2480e44f4 Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Mon, 17 Aug 2020 22:06:33 +0600 Subject: [PATCH] fix for PublishingKeysRepoKtorClient --- .../publishing/ktor/client/PublishingKeysRepoKtorClient.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/publishing/ktor/client/src/commonMain/kotlin/com/insanusmokrassar/postssystem/publishing/ktor/client/PublishingKeysRepoKtorClient.kt b/publishing/ktor/client/src/commonMain/kotlin/com/insanusmokrassar/postssystem/publishing/ktor/client/PublishingKeysRepoKtorClient.kt index d2b32baa..7739efc0 100644 --- a/publishing/ktor/client/src/commonMain/kotlin/com/insanusmokrassar/postssystem/publishing/ktor/client/PublishingKeysRepoKtorClient.kt +++ b/publishing/ktor/client/src/commonMain/kotlin/com/insanusmokrassar/postssystem/publishing/ktor/client/PublishingKeysRepoKtorClient.kt @@ -3,6 +3,7 @@ package com.insanusmokrassar.postssystem.publishing.ktor.client import com.insanusmokrassar.postssystem.core.publishing.repos.PublishingKeysRepo import com.insanusmokrassar.postssystem.core.publishing.repos.ReadPublishingKeysRepo import com.insanusmokrassar.postssystem.core.publishing.repos.WritePublishingKeysRepo +import com.insanusmokrassar.postssystem.publishing.ktor.publishingKeysRootRoute import io.ktor.client.HttpClient import io.ktor.client.features.websocket.WebSockets @@ -17,11 +18,11 @@ class PublishingKeysRepoKtorClient private constructor ( } ) : this ( ReadPublishingKeysRepoKtorClient ( - baseUrl, + "$baseUrl/$publishingKeysRootRoute", client ), WritePublishingKeysRepoKtorClient( - baseUrl, + "$baseUrl/$publishingKeysRootRoute", client ) )