class 添加默认方法,支持老的代码

This commit is contained in:
2024-04-16 06:57:56 +08:00
parent 6ef7aca8ae
commit a1f10b9c09
8 changed files with 36 additions and 11 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
using System;
namespace SimApi.Configs;
namespace SimApi.Configurations;
public class SimApiOptions
{
@@ -11,7 +11,7 @@ public class SimApiOptions
public bool EnableCors { get; set; } = true;
/// <summary>
/// 启用SimapiAuth,一个简单的基于Header Token的认证方式。
/// 启用SimApiAuth,一个简单的基于Header Token的认证方式。
/// default: false
/// </summary>
public bool EnableSimApiAuth { get; set; } = false;