feat: Roms can now be downloaded via the API

This commit is contained in:
Michael Green
2023-06-16 23:56:12 +10:00
parent 4f40d04d30
commit 8658689ac4
5 changed files with 144 additions and 20 deletions

View File

@@ -35,7 +35,10 @@ builder.Services.AddControllers().AddJsonOptions(x =>
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
builder.Services.AddSwaggerGen(options =>
{
options.CustomSchemaIds(type => type.ToString());
});
builder.Services.AddHostedService<TimedHostedService>();
var app = builder.Build();