feat: добавил quartz.net dashboard для разработки

This commit is contained in:
2026-05-21 23:20:33 +03:00
parent 935e4ed37a
commit 168d6af860
2 changed files with 16 additions and 0 deletions
+14
View File
@@ -108,6 +108,13 @@ if (!isOpenApiGeneration)
options.WaitForJobsToComplete = true;
});
}
if (builder.Environment.IsDevelopment() && !isOpenApiGeneration)
{
builder.Services.AddQuartzDashboard(options =>
{
options.ReadOnly = true;
});
}
// --- HTTP Clients ---
builder.Services.AddHttpClient<ILlmClient, LlmClient>(client =>
@@ -188,6 +195,8 @@ app.UseMiddleware<ExceptionHandlingMiddleware>();
if (app.Environment.IsDevelopment())
{
app.UseStaticFiles();
app.UseSwagger(c =>
{
c.RouteTemplate = "api/docs/{documentName}/swagger.json";
@@ -203,6 +212,11 @@ if (app.Environment.IsDevelopment())
app.UseCors();
app.UseAuthentication();
app.UseAuthorization();
if (app.Environment.IsDevelopment())
{
app.UseAntiforgery();
app.MapQuartzDashboard();
}
app.MapControllers();
app.Run();