From 0b46168e8f187b19ee07838aafffd72ad772f791 Mon Sep 17 00:00:00 2001 From: Philippe Weidmann Date: Fri, 13 Dec 2024 13:17:43 +0100 Subject: [PATCH] fix(SharedApiRoutes): Remove trailing slash + use API_BASE_URL in createUploadContainer --- .../network/utils/SharedApiRoutes.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/utils/SharedApiRoutes.kt b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/utils/SharedApiRoutes.kt index 5243f1bc..28da316e 100644 --- a/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/utils/SharedApiRoutes.kt +++ b/STNetwork/src/commonMain/kotlin/com/infomaniak/multiplatform_swisstransfer/network/utils/SharedApiRoutes.kt @@ -19,7 +19,7 @@ package com.infomaniak.multiplatform_swisstransfer.network.utils object SharedApiRoutes { - const val createUploadContainer: String = "${ApiRoutes.BASE_URL}/${ApiRoutes.initUpload}/" + const val createUploadContainer: String = "${ApiRoutes.API_BASE_URL}${ApiRoutes.initUpload}" fun shareTransfer(linkUUID: String): String = "${ApiRoutes.BASE_URL}/d/$linkUUID"