1
0
mirror of https://github.com/bitwarden/mobile.git synced 2025-01-25 21:41:26 +01:00

Move renew endpoint to fix overlapping endpoint issue (#1362)

This commit is contained in:
Matt Gibson 2021-04-12 09:45:17 -05:00 committed by GitHub
parent a2cff6da28
commit 75e27ffbe3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -334,7 +334,7 @@ namespace Bit.Core.Services
}
public Task<AttachmentUploadDataResponse> RenewAttachmentUploadUrlAsync(string cipherId, string attachmentId) =>
SendAsync<AttachmentUploadDataResponse>(HttpMethod.Get, $"/ciphers/{cipherId}/attachment/{attachmentId}", true);
SendAsync<AttachmentUploadDataResponse>(HttpMethod.Get, $"/ciphers/{cipherId}/attachment/{attachmentId}/renew", true);
public Task PostAttachmentFileAsync(string cipherId, string attachmentId, MultipartFormDataContent data) =>
SendAsync(HttpMethod.Post,