websocket
This commit is contained in:
parent
6b3e246e0e
commit
d5ae5bbe34
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue