From 643006f9c42bdfaa0dbf61d63f6ade807c416f82 Mon Sep 17 00:00:00 2001 From: Minecon724 Date: Thu, 8 Aug 2024 13:53:40 +0200 Subject: [PATCH] fix instance actions --- app/src/main/java/eu/m724/vastapp/vastai/VastApi.kt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)