Rename /v2/backup to /v2/svr.

This commit is contained in:
Greyson Parrelli
2025-07-25 11:33:21 -04:00
parent 53ee0648c0
commit e8bea19927
3 changed files with 3 additions and 3 deletions

View File

@@ -106,7 +106,7 @@ class RegistrationApi(
/**
* Validates the provided SVR2 auth credentials, returning information on their usability.
*
* `POST /v2/backup/auth/check`
* `POST /v2/svr/auth/check`
*/
fun validateSvr2AuthCredential(e164: String, usernamePasswords: List<String>): NetworkResult<BackupV2AuthCheckResponse> {
return NetworkResult.fromFetch {

View File

@@ -95,7 +95,7 @@ class SecureValueRecoveryV2(
@Throws(IOException::class)
override fun authorization(): AuthCredentials {
val request = WebSocketRequestMessage.get("/v2/backup/auth")
val request = WebSocketRequestMessage.get("/v2/svr/auth")
return NetworkResult.fromWebSocketRequest(authWebSocket, request, AuthCredentials::class).successOrThrow()
}

View File

@@ -179,7 +179,7 @@ public class PushServiceSocket {
private static final String REGISTRATION_PATH = "/v1/registration";
private static final String BACKUP_AUTH_CHECK_V2 = "/v2/backup/auth/check";
private static final String BACKUP_AUTH_CHECK_V2 = "/v2/svr/auth/check";
private static final String BACKUP_AUTH_CHECK_V3 = "/v3/backup/auth/check";
private static final String ARCHIVE_MEDIA_DOWNLOAD_PATH = "backups/%s/%s";