Quickadd feature for link saving
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user