diff --git a/FoodsharingSiegen.Server/Shared/NavMenu.razor.cs b/FoodsharingSiegen.Server/Shared/NavMenu.razor.cs
index 738840f..8a3a906 100644
--- a/FoodsharingSiegen.Server/Shared/NavMenu.razor.cs
+++ b/FoodsharingSiegen.Server/Shared/NavMenu.razor.cs
@@ -1,6 +1,8 @@
using FoodsharingSiegen.Contracts.Entity;
+using FoodsharingSiegen.Contracts.Model;
using FoodsharingSiegen.Server.Auth;
using Microsoft.AspNetCore.Components;
+using Microsoft.Extensions.Options;
namespace FoodsharingSiegen.Server.Shared
{
@@ -11,10 +13,11 @@ namespace FoodsharingSiegen.Server.Shared
{
#region Dependencies
- ///
- /// Gets or sets the value of the auth service (ab)
- ///
- [Inject] protected AuthService AuthService { get; set; } = null!;
+ [Inject]
+ private IOptions
AppSettingsContainer { get; set; } = null!;
+
+ [Inject]
+ protected AuthService AuthService { get; set; } = null!;
#endregion
@@ -27,6 +30,14 @@ namespace FoodsharingSiegen.Server.Shared
#endregion
+ #region Protected Properties
+
+ /// Provides application-specific settings used to configure the behavior and display of the application.
+ /// The AppSettings class encapsulates information such as the application title and other configurable parameters.
+ protected AppSettings AppSettings => AppSettingsContainer.Value;
+
+ #endregion
+
#region Override OnInitializedAsync
///
diff --git a/FoodsharingSiegen.Server/appsettings.Development.json b/FoodsharingSiegen.Server/appsettings.Development.json
deleted file mode 100644
index 770d3e9..0000000
--- a/FoodsharingSiegen.Server/appsettings.Development.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "DetailedErrors": true,
- "Logging": {
- "LogLevel": {
- "Default": "Information",
- "Microsoft.AspNetCore": "Warning"
- }
- }
-}
diff --git a/FoodsharingSiegen.Server/appsettings.json b/FoodsharingSiegen.Server/appsettings.json
deleted file mode 100644
index 10f68b8..0000000
--- a/FoodsharingSiegen.Server/appsettings.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "Logging": {
- "LogLevel": {
- "Default": "Information",
- "Microsoft.AspNetCore": "Warning"
- }
- },
- "AllowedHosts": "*"
-}
diff --git a/FoodsharingSiegen.Server/config/appsettings.json b/FoodsharingSiegen.Server/config/appsettings.json
index 3a82afb..4d82398 100644
--- a/FoodsharingSiegen.Server/config/appsettings.json
+++ b/FoodsharingSiegen.Server/config/appsettings.json
@@ -5,5 +5,8 @@
"Url": "http://+:56000"
}
}
+ },
+ "Settings": {
+ "Title": "Foodsharing Olpe-Wenden"
}
}
\ No newline at end of file