diff --git a/app/src/main/java/eu/m724/vastapp/vastai/VastApi.kt b/app/src/main/java/eu/m724/vastapp/vastai/VastApi.kt index 8b165a4..8e7f155 100644 --- a/app/src/main/java/eu/m724/vastapp/vastai/VastApi.kt +++ b/app/src/main/java/eu/m724/vastapp/vastai/VastApi.kt @@ -56,7 +56,7 @@ class VastApi( val deferred = CompletableDeferred() val request = requestMaker.buildRequest( - "/instances/$rentalId", + "/instances/$rentalId/", // THIS NEEDS A / AT THE END JsonUrlRequestCallback( onSuccess = { if (it.getBoolean("success")) @@ -77,7 +77,7 @@ class VastApi( val deferred = CompletableDeferred() val request = requestMaker.buildRequest( - "/instances/$rentalId", + "/instances/$rentalId/", // THIS NEEDS A / AT THE END JsonUrlRequestCallback( onSuccess = { deferred.complete(Unit) @@ -97,7 +97,7 @@ class VastApi( val deferred = CompletableDeferred() val request = requestMaker.buildRequest( - "/instances/$rentalId", + "/instances/$rentalId/", // THIS NEEDS A / AT THE END JsonUrlRequestCallback( onSuccess = { deferred.complete(Unit)