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();