websocket

This commit is contained in:
yanghongwei 2025-04-02 23:44:40 +08:00
parent 6b3e246e0e
commit d5ae5bbe34
1 changed files with 1 additions and 1 deletions

View File

@ -66,7 +66,7 @@ namespace LY.App.MiddleWare
private bool IsExcludedPath(PathString path)
{
// 根据实际情况定义不需要Token验证的API路径
string[] arry = { "login", "index" };
string[] arry = { "login", "websocket" };
return arry.Any(s => path.Value.Contains(s));
// return path.StartsWithSegments("/api/public");
}