From 8a0c9ab3db8447d33cc5b8b13b21d05c7d7dc786 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 3 Oct 2017 23:56:10 -0400 Subject: [PATCH] add back slash prefix to 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/SettingsApiRepository.cs | 2 +- src/App/Repositories/SyncApiRepository.cs | 2 +- src/App/Repositories/TwoFactorApiRepository.cs | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/App/Repositories/AccountsApiRepository.cs b/src/App/Repositories/AccountsApiRepository.cs index feda93c1b..f81133a6e 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 8db7adf8d..72a95b4c4 100644 --- a/src/App/Repositories/CipherApiRepository.cs +++ b/src/App/Repositories/CipherApiRepository.cs @@ -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> PostAttachmentAsync(string cipherId, byte[] data, string fileName) diff --git a/src/App/Repositories/ConnectApiRepository.cs b/src/App/Repositories/ConnectApiRepository.cs index a929c0632..4b1e5c9d0 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 1b7b3dd7c..06c86024c 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/SettingsApiRepository.cs b/src/App/Repositories/SettingsApiRepository.cs index b2e6b00ae..502871498 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/SyncApiRepository.cs b/src/App/Repositories/SyncApiRepository.cs index a913d91d9..552c16d69 100644 --- a/src/App/Repositories/SyncApiRepository.cs +++ b/src/App/Repositories/SyncApiRepository.cs @@ -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> Get() { diff --git a/src/App/Repositories/TwoFactorApiRepository.cs b/src/App/Repositories/TwoFactorApiRepository.cs index f037b6b3e..50c9695dc 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) {