全球化与本地化
This commit is contained in:
1 parent
6fef1a9ea0
commit
77b9f64039
15 files changed
+649
-7
No files matched your search
@@ -1,6 +1,7 @@
|
||||
// Copyright (c) HelloShop Corporation. All rights reserved.
|
||||
// See the license file in the project root for more information.
|
||||
|
||||
using HelloShop.ServiceDefaults.Infrastructure;
|
||||
using Microsoft.AspNetCore.Builder;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.OpenApi.Models;
|
||||
@@ -25,6 +26,8 @@ namespace HelloShop.ServiceDefaults.Extensions
|
||||
|
||||
services.Configure<SwaggerGenOptions>(options =>
|
||||
{
|
||||
options.OperationFilter<AcceptLanguageHeaderOperationFilter>();
|
||||
|
||||
options.AddSecurityDefinition("bearerAuth", new OpenApiSecurityScheme
|
||||
{
|
||||
Type = SecuritySchemeType.Http,
|
||||
|
||||
Reference in new issue
Block a user