Add ApiOptions and configure API settings
Added a new `ApiOptions` class to encapsulate API configuration, including the `BaseUrl` property and `SectionName` constant. Registered `ApiOptions` in the dependency injection container in `Program.cs` and bound it to the "Api" section in the configuration file. Updated `appsettings.json` to include the "Api" section with a `BaseUrl` value of "https://localhost:8088".
This commit is contained in:
5
EnvelopeGenerator.ReceiverUI/wwwroot/appsettings.json
Normal file
5
EnvelopeGenerator.ReceiverUI/wwwroot/appsettings.json
Normal file
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"Api": {
|
||||
"BaseUrl": "https://localhost:8088"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user