Refactor state transitions into workflow service

This commit is contained in:
2026-02-07 13:27:02 +01:00
parent 260dd5ab17
commit abb9874c98
3 changed files with 115 additions and 81 deletions

View File

@@ -39,6 +39,7 @@ builder.Services.AddScoped<SuggestionWorkflowService>();
builder.Services.AddScoped<VoteWorkflowService>();
builder.Services.AddScoped<AdminWorkflowService>();
builder.Services.AddScoped<ResultsWorkflowService>();
builder.Services.AddScoped<StateWorkflowService>();
builder.Services.ConfigureHttpJsonOptions(options => { options.SerializerOptions.Converters.Add(new JsonStringEnumConverter()); });