Skip to content

Commit

Permalink
Follow naming convention for platform settings NotificationEndpoint (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
martinothamar authored Apr 19, 2024
1 parent 4b77f2d commit 7fc76a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Altinn.App.Core/Configuration/PlatformSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class PlatformSettings
/// <summary>
/// Gets or sets the url for the Notification API endpoint.
/// </summary>
public string NotificationEndpoint { get; set; } = "http://localhost:5101/notifications/api/v1/";
public string ApiNotificationEndpoint { get; set; } = "http://localhost:5101/notifications/api/v1/";

/// <summary>
/// Gets or sets the subscription key value to use in requests against the platform.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public async Task<EmailOrderResponse> 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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public async Task<SmsNotificationOrderResponse> 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)
Expand Down

0 comments on commit 7fc76a8

Please sign in to comment.