fix simapiauth to singleton

This commit is contained in:
2024-03-24 17:40:48 +08:00
parent 8344567ac6
commit c68cfa6192
+1 -1
View File
@@ -33,7 +33,7 @@ public static class SimApiExtensions
// 是否使用 AUTH
if (simApiOptions.EnableSimApiAuth)
{
builder.AddScoped<SimApiAuth>();
builder.AddSingleton<SimApiAuth>();
}
if (simApiOptions.EnableCors)