Extract suggestion and vote workflows into services

This commit is contained in:
2026-02-07 01:01:10 +01:00
parent d41b65d23d
commit 5d40d555d1
6 changed files with 361 additions and 299 deletions

View File

@@ -34,6 +34,8 @@ else if (!Path.IsPathRooted(connectionBuilder.DataSource))
var connectionString = connectionBuilder.ToString();
builder.Services.AddDbContext<AppDbContext>(options => options.UseSqlite(connectionString));
builder.Services.AddScoped<SuggestionWorkflowService>();
builder.Services.AddScoped<VoteWorkflowService>();
builder.Services.ConfigureHttpJsonOptions(options => { options.SerializerOptions.Converters.Add(new JsonStringEnumConverter()); });