feat(swagger): Настроил новые маршруты для Swagger
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 1m26s

This commit is contained in:
2026-03-26 02:54:15 +03:00
parent f7bc7af9e3
commit 0b329ec9ec

View File

@@ -318,8 +318,14 @@ if (refreshJwt)
else
await scheduler.TriggerJob(new JobKey(nameof(UpdateEmployeesJob)));
app.UseSwagger();
app.UseSwaggerUI();
app.UseSwagger(options =>
{
options.RouteTemplate = "api/docs/{documentName}/swagger.json";
});
app.UseSwaggerUI(options =>
{
options.RoutePrefix = "api/docs";
});
app.UseStaticFiles();