mirror of
https://github.com/open-webui/open-terminal.git
synced 2026-11-04 08:10:53 +00:00
refac
This commit is contained in:
1 parent
0085ec7d1f
commit
c4f47b2776
1 file changed
+8
-1
@@ -441,7 +441,14 @@ async def get_cwd(
|
||||
fs: UserFS = Depends(get_filesystem),
|
||||
):
|
||||
session_id = http_request.headers.get("x-session-id")
|
||||
return {"cwd": _get_session_cwd(session_id, fs), "home": fs.home}
|
||||
return {
|
||||
"cwd": _get_session_cwd(session_id, fs),
|
||||
"home": fs.home,
|
||||
"root": {
|
||||
"path": fs.home,
|
||||
"label": "Home",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
@app.post(
|
||||
|
||||
Reference in new issue
Block a user