Go: fix CLI logout command (#14672)

### What problem does this PR solve?

```
RAGFlow(user)> logout;
SUCCESS
```

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-05-08 16:47:25 +08:00
committed by GitHub
parent 94f82acd03
commit ce2ec86b5e
2 changed files with 4 additions and 25 deletions

View File

@@ -210,10 +210,10 @@ func (c *RAGFlowClient) Logout() (ResponseIf, error) {
if c.ServerType == "admin" {
path = "/admin/logout"
} else {
path = "/user/logout"
path = "/auth/logout"
}
resp, err := c.HTTPClient.Request("GET", path, "web", nil, nil)
resp, err := c.HTTPClient.Request("POST", path, "web", nil, nil)
if err != nil {
return nil, err
}