From 15f074a45b70a76a347cb8f194e811573071ea0c Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 20 Sep 2017 13:23:47 -0400 Subject: [PATCH] remove duplicate `/` from API routes --- src/App/Repositories/AccountsApiRepository.cs | 2 +- src/App/Repositories/CipherApiRepository.cs | 2 +- src/App/Repositories/ConnectApiRepository.cs | 2 +- src/App/Repositories/DeviceApiRepository.cs | 2 +- src/App/Repositories/FolderApiRepository.cs | 2 +- src/App/Repositories/LoginApiRepository.cs | 2 +- src/App/Repositories/SettingsApiRepository.cs | 2 +- src/App/Repositories/TwoFactorApiRepository.cs | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/App/Repositories/AccountsApiRepository.cs b/src/App/Repositories/AccountsApiRepository.cs index f81133a6e..feda93c1b 100644 --- a/src/App/Repositories/AccountsApiRepository.cs +++ b/src/App/Repositories/AccountsApiRepository.cs @@ -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 PostRegisterAsync(RegisterRequest requestObj) { diff --git a/src/App/Repositories/CipherApiRepository.cs b/src/App/Repositories/CipherApiRepository.cs index a10546d6b..a019a4400 100644 --- a/src/App/Repositories/CipherApiRepository.cs +++ b/src/App/Repositories/CipherApiRepository.cs @@ -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> GetByIdAsync(string id) { diff --git a/src/App/Repositories/ConnectApiRepository.cs b/src/App/Repositories/ConnectApiRepository.cs index 4b1e5c9d0..a929c0632 100644 --- a/src/App/Repositories/ConnectApiRepository.cs +++ b/src/App/Repositories/ConnectApiRepository.cs @@ -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> PostTokenAsync(TokenRequest requestObj) { diff --git a/src/App/Repositories/DeviceApiRepository.cs b/src/App/Repositories/DeviceApiRepository.cs index 06c86024c..1b7b3dd7c 100644 --- a/src/App/Repositories/DeviceApiRepository.cs +++ b/src/App/Repositories/DeviceApiRepository.cs @@ -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 PutTokenAsync(string identifier, DeviceTokenRequest request) { diff --git a/src/App/Repositories/FolderApiRepository.cs b/src/App/Repositories/FolderApiRepository.cs index 5519af938..c53a80920 100644 --- a/src/App/Repositories/FolderApiRepository.cs +++ b/src/App/Repositories/FolderApiRepository.cs @@ -14,6 +14,6 @@ namespace Bit.App.Repositories : base(connectivity, httpService, tokenService) { } - protected override string ApiRoute => "/folders"; + protected override string ApiRoute => "folders"; } } diff --git a/src/App/Repositories/LoginApiRepository.cs b/src/App/Repositories/LoginApiRepository.cs index 0c8fcb6a6..7df3c5b45 100644 --- a/src/App/Repositories/LoginApiRepository.cs +++ b/src/App/Repositories/LoginApiRepository.cs @@ -14,6 +14,6 @@ namespace Bit.App.Repositories : base(connectivity, httpService, tokenService) { } - protected override string ApiRoute => "/logins"; + protected override string ApiRoute => "logins"; } } diff --git a/src/App/Repositories/SettingsApiRepository.cs b/src/App/Repositories/SettingsApiRepository.cs index 502871498..b2e6b00ae 100644 --- a/src/App/Repositories/SettingsApiRepository.cs +++ b/src/App/Repositories/SettingsApiRepository.cs @@ -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> GetDomains(bool excluded = false) { diff --git a/src/App/Repositories/TwoFactorApiRepository.cs b/src/App/Repositories/TwoFactorApiRepository.cs index 50c9695dc..f037b6b3e 100644 --- a/src/App/Repositories/TwoFactorApiRepository.cs +++ b/src/App/Repositories/TwoFactorApiRepository.cs @@ -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 PostSendEmailLoginAsync(TwoFactorEmailRequest requestObj) {