mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-09-13 02:54:26 +08:00
feat: 初步增加 Windows 支持
This commit is contained in:
@@ -62,10 +62,8 @@ pub async fn redfish_auth_middleware(
|
||||
}
|
||||
|
||||
fn is_redfish_public_endpoint(path: &str, method: &Method) -> bool {
|
||||
matches!(
|
||||
path,
|
||||
"/" | "/v1" | "/v1/" | "/v1/odata"
|
||||
) || path.starts_with("/v1/$metadata")
|
||||
matches!(path, "/" | "/v1" | "/v1/" | "/v1/odata")
|
||||
|| path.starts_with("/v1/$metadata")
|
||||
|| (path == "/v1/SessionService/Sessions" && *method == Method::POST)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user