less shit code but still not good

This commit is contained in:
Вячеслав 2025-04-20 20:33:17 +05:00
parent ddfb5eff54
commit 9e50b97bc9
6 changed files with 14 additions and 47 deletions

View file

@ -1,3 +1,4 @@
using System.Text.Json.Serialization;
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft.EntityFrameworkCore;
using Microsoft.IdentityModel.Tokens;
@ -66,8 +67,8 @@ public class Program
};
});
builder.Services.AddControllers();
builder.Services.AddControllers().AddJsonOptions(opts => { opts.JsonSerializerOptions.DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull; });
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen(c =>
{