diff --git a/src/Core/Services/Implementations/BaseIdentityClientService.cs b/src/Core/Services/Implementations/BaseIdentityClientService.cs index a92cb869f..f2f26696a 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 01de68886..3c801568b 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 a9f37f1eb..f84ac9bfa 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 d537e7f75..ee18815cd 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); } } }