feat(swagger): Настроил новые маршруты для Swagger
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 1m26s
All checks were successful
Create and publish a Docker image / Publish image (push) Successful in 1m26s
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user