Added reorderable library columns

This commit is contained in:
Ben committed 2026-07-04 22:57:21 +02:00
1 parent d848efaf50
commit db426e351a
8 files changed
+536 -212

No files matched your search

+12
View File
@@ -142,6 +142,18 @@ def collection_options() -> CollectionOptions:
return CollectionOptions(auto=auto, recent=recent)
@app.get("/api/prefs")
def get_prefs() -> dict:
"""The full persisted user-preferences blob (UI layout, last collection…)."""
return prefs.load_prefs()
@app.patch("/api/prefs")
def patch_prefs(patch: dict) -> dict:
"""Shallow-merge the given keys into the stored prefs; returns the result."""
return prefs.update_prefs(patch)
@app.get("/api/fs/list", response_model=FsListing)
def fs_list(path: str | None = None) -> FsListing:
"""List directories and .nml files for the in-app file browser."""