From 0b329ec9ec3a4ad0c2ac093af6d83911e9c03d03 Mon Sep 17 00:00:00 2001 From: Sergey Karmanov Date: Thu, 26 Mar 2026 02:54:15 +0300 Subject: [PATCH] =?UTF-8?q?feat(swagger):=20=D0=9D=D0=B0=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=BE=D0=B8=D0=BB=20=D0=BD=D0=BE=D0=B2=D1=8B=D0=B5=20=D0=BC?= =?UTF-8?q?=D0=B0=D1=80=D1=88=D1=80=D1=83=D1=82=D1=8B=20=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=20Swagger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SfeduSchedule/Program.cs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/SfeduSchedule/Program.cs b/SfeduSchedule/Program.cs index e52b0e4..7e3f5e7 100644 --- a/SfeduSchedule/Program.cs +++ b/SfeduSchedule/Program.cs @@ -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();