Extract admin and results workflows into services
This commit is contained in:
@@ -36,6 +36,8 @@ var connectionString = connectionBuilder.ToString();
|
||||
builder.Services.AddDbContext<AppDbContext>(options => options.UseSqlite(connectionString));
|
||||
builder.Services.AddScoped<SuggestionWorkflowService>();
|
||||
builder.Services.AddScoped<VoteWorkflowService>();
|
||||
builder.Services.AddScoped<AdminWorkflowService>();
|
||||
builder.Services.AddScoped<ResultsWorkflowService>();
|
||||
|
||||
builder.Services.ConfigureHttpJsonOptions(options => { options.SerializerOptions.Converters.Add(new JsonStringEnumConverter()); });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user