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
|
else
|
||||||
await scheduler.TriggerJob(new JobKey(nameof(UpdateEmployeesJob)));
|
await scheduler.TriggerJob(new JobKey(nameof(UpdateEmployeesJob)));
|
||||||
|
|
||||||
app.UseSwagger();
|
app.UseSwagger(options =>
|
||||||
app.UseSwaggerUI();
|
{
|
||||||
|
options.RouteTemplate = "api/docs/{documentName}/swagger.json";
|
||||||
|
});
|
||||||
|
app.UseSwaggerUI(options =>
|
||||||
|
{
|
||||||
|
options.RoutePrefix = "api/docs";
|
||||||
|
});
|
||||||
|
|
||||||
app.UseStaticFiles();
|
app.UseStaticFiles();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user