Quickadd feature for link saving

This commit is contained in:
2026-05-11 12:03:59 +02:00
parent 30b5e36cd7
commit a9519f747e
4 changed files with 250 additions and 0 deletions
+5
View File
@@ -98,6 +98,7 @@ func main() {
}))
http.HandleFunc("/_logout", h.handleLogout)
http.HandleFunc("/_reindex", h.handleReindex)
http.HandleFunc("/quickadd", h.handleQuickAdd)
http.Handle("/", h)
// Build the folder index off the request path so the listener can start
@@ -323,6 +324,10 @@ func (h *handler) handlePost(w http.ResponseWriter, r *http.Request, urlPath, fs
h.handleToggle(w, r, fsPath)
return
}
if query.Has("append") {
h.handleAppend(w, r, urlPath, fsPath)
return
}
if err := r.ParseForm(); err != nil {
http.Error(w, "bad request", http.StatusBadRequest)