mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 00:03:56 +00:00
CLI specifies bitwarden api for send download (#348)
This is needed for CLI to download Send files from non-configured Bitwarden Servers. Web does not have this issue because it can assume api from its own url.
This commit is contained in:
@@ -423,8 +423,8 @@ export class ApiService implements ApiServiceAbstraction {
|
||||
}
|
||||
|
||||
|
||||
async getSendFileDownloadData(send: SendAccessView, request: SendAccessRequest): Promise<SendFileDownloadDataResponse> {
|
||||
const r = await this.send('POST', '/sends/' + send.id + '/access/file/' + send.file.id, request, false, true);
|
||||
async getSendFileDownloadData(send: SendAccessView, request: SendAccessRequest, apiUrl?: string): Promise<SendFileDownloadDataResponse> {
|
||||
const r = await this.send('POST', '/sends/' + send.id + '/access/file/' + send.file.id, request, false, true, apiUrl);
|
||||
return new SendFileDownloadDataResponse(r);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user