feat: search files across folders
This commit is contained in:
@@ -36,7 +36,8 @@ func (h *NodeHandler) List(w http.ResponseWriter, r *http.Request) {
|
||||
userID := commonmw.GetUserID(r.Context())
|
||||
scope := r.URL.Query().Get("scope")
|
||||
parentID := emptyToNil(r.URL.Query().Get("parent_id"))
|
||||
nodes, err := h.repo.List(r.Context(), userID, subordinates(r), scope, parentID)
|
||||
query := strings.TrimSpace(r.URL.Query().Get("q"))
|
||||
nodes, err := h.repo.List(r.Context(), userID, subordinates(r), scope, parentID, query)
|
||||
if err != nil {
|
||||
writeInternalError(w, r, err, "failed to list files")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user