aboutsummaryrefslogtreecommitdiffhomepage
path: root/api/entry.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/entry.go')
-rw-r--r--api/entry.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/api/entry.go b/api/entry.go
index 6d1167b..a6785fb 100644
--- a/api/entry.go
+++ b/api/entry.go
@@ -248,4 +248,9 @@ func configureFilters(builder *storage.EntryQueryBuilder, r *http.Request) {
if request.HasQueryParam(r, "starred") {
builder.WithStarred()
}
+
+ searchQuery := request.QueryParam(r, "search", "")
+ if searchQuery != "" {
+ builder.WithSearchQuery(searchQuery)
+ }
}