mirror of
https://github.com/bitwarden/android.git
synced 2026-04-26 19:08:37 -05:00
remove duplicate / from API routes
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -19,7 +19,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>> GetByIdAsync(string id)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -14,6 +14,6 @@ namespace Bit.App.Repositories
|
||||
: base(connectivity, httpService, tokenService)
|
||||
{ }
|
||||
|
||||
protected override string ApiRoute => "/folders";
|
||||
protected override string ApiRoute => "folders";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,6 +14,6 @@ namespace Bit.App.Repositories
|
||||
: base(connectivity, httpService, tokenService)
|
||||
{ }
|
||||
|
||||
protected override string ApiRoute => "/logins";
|
||||
protected override string ApiRoute => "logins";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user