Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Allow FormOptions to be configured in appsettings.json
  • Loading branch information
thoscut authored Aug 11, 2023
commit 359b1588dd75b300b4bcea89d39306b3b4450d37
1 change: 1 addition & 0 deletions src/BaGet/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public void ConfigureServices(IServiceCollection services)
services.AddTransient<IConfigureOptions<IISServerOptions>, ConfigureBaGetOptions>();
services.AddTransient<IValidateOptions<BaGetOptions>, ConfigureBaGetOptions>();

services.AddBaGetOptions<FormOptions>(nameof(FormOptions));
services.AddBaGetOptions<IISServerOptions>(nameof(IISServerOptions));
services.AddBaGetWebApplication(ConfigureBaGetApplication);

Expand Down