From 255855887b2463478ec93133bee301c61a18b517 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 21 Aug 2018 14:32:09 -0400 Subject: [PATCH] fix double `//` --- .../Services/Implementations/BaseIdentityClientService.cs | 2 +- .../NotificationsApiPushNotificationService.cs | 2 +- .../Implementations/RelayPushNotificationService.cs | 4 ++-- .../Implementations/RelayPushRegistrationService.cs | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/Core/Services/Implementations/BaseIdentityClientService.cs b/src/Core/Services/Implementations/BaseIdentityClientService.cs index a92cb869f9..f2f26696ab 100644 --- a/src/Core/Services/Implementations/BaseIdentityClientService.cs +++ b/src/Core/Services/Implementations/BaseIdentityClientService.cs @@ -92,7 +92,7 @@ namespace Bit.Core.Services var requestMessage = new HttpRequestMessage { Method = HttpMethod.Post, - RequestUri = new Uri(string.Concat(IdentityClient.BaseAddress, "/connect/token")), + RequestUri = new Uri(string.Concat(IdentityClient.BaseAddress, "connect/token")), Content = new FormUrlEncodedContent(new Dictionary { { "grant_type", "client_credentials" }, diff --git a/src/Core/Services/Implementations/NotificationsApiPushNotificationService.cs b/src/Core/Services/Implementations/NotificationsApiPushNotificationService.cs index 01de688863..3c801568b1 100644 --- a/src/Core/Services/Implementations/NotificationsApiPushNotificationService.cs +++ b/src/Core/Services/Implementations/NotificationsApiPushNotificationService.cs @@ -141,7 +141,7 @@ namespace Bit.Core.Services { var contextId = GetContextIdentifier(excludeCurrentContext); var request = new PushNotificationData(type, payload, contextId); - await SendAsync(HttpMethod.Post, "/notification", request); + await SendAsync(HttpMethod.Post, "notification", request); } private string GetContextIdentifier(bool excludeCurrentContext) diff --git a/src/Core/Services/Implementations/RelayPushNotificationService.cs b/src/Core/Services/Implementations/RelayPushNotificationService.cs index a9f37f1eb5..f84ac9bfa4 100644 --- a/src/Core/Services/Implementations/RelayPushNotificationService.cs +++ b/src/Core/Services/Implementations/RelayPushNotificationService.cs @@ -144,7 +144,7 @@ namespace Bit.Core.Services ExcludeCurrentContext(request); } - await SendAsync(HttpMethod.Post, "/push/send", request); + await SendAsync(HttpMethod.Post, "push/send", request); } private async Task SendPayloadToOrganizationAsync(Guid orgId, PushType type, object payload, bool excludeCurrentContext) @@ -161,7 +161,7 @@ namespace Bit.Core.Services ExcludeCurrentContext(request); } - await SendAsync(HttpMethod.Post, "/push/send", request); + await SendAsync(HttpMethod.Post, "push/send", request); } private void ExcludeCurrentContext(PushSendRequestModel request) diff --git a/src/Core/Services/Implementations/RelayPushRegistrationService.cs b/src/Core/Services/Implementations/RelayPushRegistrationService.cs index d537e7f75f..ee18815cdb 100644 --- a/src/Core/Services/Implementations/RelayPushRegistrationService.cs +++ b/src/Core/Services/Implementations/RelayPushRegistrationService.cs @@ -37,12 +37,12 @@ namespace Bit.Core.Services Type = type, UserId = userId }; - await SendAsync(HttpMethod.Post, "/push/register", requestModel); + await SendAsync(HttpMethod.Post, "push/register", requestModel); } public async Task DeleteRegistrationAsync(string deviceId) { - await SendAsync(HttpMethod.Delete, string.Concat("/push/", deviceId)); + await SendAsync(HttpMethod.Delete, string.Concat("push/", deviceId)); } public async Task AddUserRegistrationOrganizationAsync(IEnumerable deviceIds, string organizationId) @@ -53,7 +53,7 @@ namespace Bit.Core.Services } var requestModel = new PushUpdateRequestModel(deviceIds, organizationId); - await SendAsync(HttpMethod.Put, "/push/add-organization", requestModel); + await SendAsync(HttpMethod.Put, "push/add-organization", requestModel); } public async Task DeleteUserRegistrationOrganizationAsync(IEnumerable deviceIds, string organizationId) @@ -64,7 +64,7 @@ namespace Bit.Core.Services } var requestModel = new PushUpdateRequestModel(deviceIds, organizationId); - await SendAsync(HttpMethod.Put, "/push/delete-organization", requestModel); + await SendAsync(HttpMethod.Put, "push/delete-organization", requestModel); } } }