mirror of
https://github.com/bitwarden/android.git
synced 2024-12-24 18:08:26 +03:00
add back slash prefix to api routes
This commit is contained in:
parent
e901a1f231
commit
8a0c9ab3db
7 changed files with 7 additions and 7 deletions
|
@ -18,7 +18,7 @@ namespace Bit.App.Repositories
|
|||
: base(connectivity, httpService, tokenService)
|
||||
{ }
|
||||
|
||||
protected override string ApiRoute => "accounts";
|
||||
protected override string ApiRoute => "/accounts";
|
||||
|
||||
public virtual async Task<ApiResult> PostRegisterAsync(RegisterRequest requestObj)
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Bit.App.Repositories
|
|||
: base(connectivity, httpService, tokenService)
|
||||
{ }
|
||||
|
||||
protected override string ApiRoute => "ciphers";
|
||||
protected override string ApiRoute => "/ciphers";
|
||||
|
||||
public virtual async Task<ApiResult<CipherResponse>> PostAttachmentAsync(string cipherId, byte[] data,
|
||||
string fileName)
|
||||
|
|
|
@ -20,7 +20,7 @@ namespace Bit.App.Repositories
|
|||
: base(connectivity, httpService, tokenService)
|
||||
{ }
|
||||
|
||||
protected override string ApiRoute => "connect";
|
||||
protected override string ApiRoute => "/connect";
|
||||
|
||||
public virtual async Task<ApiResult<TokenResponse>> PostTokenAsync(TokenRequest requestObj)
|
||||
{
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace Bit.App.Repositories
|
|||
: base(connectivity, httpService, tokenService)
|
||||
{ }
|
||||
|
||||
protected override string ApiRoute => "devices";
|
||||
protected override string ApiRoute => "/devices";
|
||||
|
||||
public virtual async Task<ApiResult> PutTokenAsync(string identifier, DeviceTokenRequest request)
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace Bit.App.Repositories
|
|||
: base(connectivity, httpService, tokenService)
|
||||
{ }
|
||||
|
||||
protected override string ApiRoute => "settings";
|
||||
protected override string ApiRoute => "/settings";
|
||||
|
||||
public virtual async Task<ApiResult<DomainsResponse>> GetDomains(bool excluded = false)
|
||||
{
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace Bit.App.Repositories
|
|||
: base(connectivity, httpService, tokenService)
|
||||
{ }
|
||||
|
||||
protected override string ApiRoute => "sync";
|
||||
protected override string ApiRoute => "/sync";
|
||||
|
||||
public virtual async Task<ApiResult<SyncResponse>> Get()
|
||||
{
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace Bit.App.Repositories
|
|||
: base(connectivity, httpService, tokenService)
|
||||
{ }
|
||||
|
||||
protected override string ApiRoute => "two-factor";
|
||||
protected override string ApiRoute => "/two-factor";
|
||||
|
||||
public virtual async Task<ApiResult> PostSendEmailLoginAsync(TwoFactorEmailRequest requestObj)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue