mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
feat(directory): ✨ exclude nulls from API json responses
This commit is contained in:
parent
9d8a023ba2
commit
0885d53a87
1 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,8 @@ public Startup(IConfiguration configuration)
|
|||
|
||||
public void ConfigureServices(IServiceCollection services)
|
||||
{
|
||||
services.AddControllers();
|
||||
services.AddControllers()
|
||||
.AddJsonOptions(o => o.JsonSerializerOptions.IgnoreNullValues = true);
|
||||
services.AddApplicationServices(Configuration);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue