Update OpenApiHttpTrigger.cs (#65)
This commit is contained in:
Родитель
b98f274d81
Коммит
0b9a2d83e8
|
@ -116,7 +116,7 @@ namespace Microsoft.Azure.WebJobs.Extensions.OpenApi
|
||||||
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "swagger/ui")] HttpRequest req,
|
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "swagger/ui")] HttpRequest req,
|
||||||
ILogger log)
|
ILogger log)
|
||||||
{
|
{
|
||||||
log.LogInformation($"SwaggerUI page was requested.");
|
log.LogInformation("SwaggerUI page was requested.");
|
||||||
|
|
||||||
var result = await context.SwaggerUI
|
var result = await context.SwaggerUI
|
||||||
.AddMetadata(context.OpenApiConfiguration.Info)
|
.AddMetadata(context.OpenApiConfiguration.Info)
|
||||||
|
@ -147,7 +147,7 @@ namespace Microsoft.Azure.WebJobs.Extensions.OpenApi
|
||||||
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "oauth2-redirect.html")] HttpRequest req,
|
[HttpTrigger(AuthorizationLevel.Anonymous, "GET", Route = "oauth2-redirect.html")] HttpRequest req,
|
||||||
ILogger log)
|
ILogger log)
|
||||||
{
|
{
|
||||||
log.LogInformation($"The oauth2-redirect.html page was requested.");
|
log.LogInformation("The oauth2-redirect.html page was requested.");
|
||||||
|
|
||||||
var result = await context.SwaggerUI
|
var result = await context.SwaggerUI
|
||||||
.AddServer(req, context.HttpSettings.RoutePrefix, context.OpenApiConfiguration)
|
.AddServer(req, context.HttpSettings.RoutePrefix, context.OpenApiConfiguration)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче