Skip to content

Commit

Permalink
feat(/list/): add term param to /list/ api, for local dataset search
Browse files Browse the repository at this point in the history
  • Loading branch information
ramfox committed Apr 25, 2019
1 parent dab742a commit f66f857
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/datasets.go
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,8 @@ func (h *DatasetHandlers) listHandler(w http.ResponseWriter, r *http.Request) {
args := lib.ListParamsFromRequest(r)
args.OrderBy = "created"

args.Term = r.FormValue("term")

res := []repo.DatasetRef{}
if err := h.List(&args, &res); err != nil {
log.Infof("error listing datasets: %s", err.Error())
Expand Down

0 comments on commit f66f857

Please sign in to comment.