Add Tree Selector

This commit is contained in:
2026-04-23 14:02:41 +02:00
parent c6a292754f
commit 8b13938290
8 changed files with 567 additions and 23 deletions
+5
View File
@@ -96,6 +96,11 @@ func (h *handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
return
}
if r.Method == http.MethodGet && r.URL.Query().Has("tree") {
h.handleTree(w, r, urlPath, fsPath)
return
}
info, err := os.Stat(fsPath)
if err != nil {
if os.IsNotExist(err) {