diff --git a/src/Altinn.App.Core/Configuration/PlatformSettings.cs b/src/Altinn.App.Core/Configuration/PlatformSettings.cs index 92cd3581f..8544e5ed2 100644 --- a/src/Altinn.App.Core/Configuration/PlatformSettings.cs +++ b/src/Altinn.App.Core/Configuration/PlatformSettings.cs @@ -44,7 +44,7 @@ public class PlatformSettings /// /// Gets or sets the url for the Notification API endpoint. /// - public string NotificationEndpoint { get; set; } = "http://localhost:5101/notifications/api/v1/"; + public string ApiNotificationEndpoint { get; set; } = "http://localhost:5101/notifications/api/v1/"; /// /// Gets or sets the subscription key value to use in requests against the platform. diff --git a/src/Altinn.App.Core/Features/Notifications/Email/EmailNotificationClient.cs b/src/Altinn.App.Core/Features/Notifications/Email/EmailNotificationClient.cs index 866d5e0e7..b1bfd0761 100644 --- a/src/Altinn.App.Core/Features/Notifications/Email/EmailNotificationClient.cs +++ b/src/Altinn.App.Core/Features/Notifications/Email/EmailNotificationClient.cs @@ -53,7 +53,7 @@ public async Task Order(EmailNotification emailNotification, { var application = await _appMetadata.GetApplicationMetadata(); - var uri = _platformSettings.NotificationEndpoint.TrimEnd('/') + "/orders/email"; + var uri = _platformSettings.ApiNotificationEndpoint.TrimEnd('/') + "/orders/email"; var body = JsonSerializer.Serialize(emailNotification); using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Post, uri) diff --git a/src/Altinn.App.Core/Features/Notifications/Sms/SmsNotificationClient.cs b/src/Altinn.App.Core/Features/Notifications/Sms/SmsNotificationClient.cs index c197b8b2d..e6d1255fa 100644 --- a/src/Altinn.App.Core/Features/Notifications/Sms/SmsNotificationClient.cs +++ b/src/Altinn.App.Core/Features/Notifications/Sms/SmsNotificationClient.cs @@ -54,7 +54,7 @@ public async Task Order(SmsNotification smsNotific { Models.ApplicationMetadata? application = await _appMetadata.GetApplicationMetadata(); - var uri = _platformSettings.NotificationEndpoint.TrimEnd('/') + "/orders/sms"; + var uri = _platformSettings.ApiNotificationEndpoint.TrimEnd('/') + "/orders/sms"; var body = JsonSerializer.Serialize(smsNotification); using var httpRequestMessage = new HttpRequestMessage(HttpMethod.Post, uri)