lib/logster/middleware/viewer.rb in logster-1.2.8 vs lib/logster/middleware/viewer.rb in logster-1.2.9
- old
+ new
@@ -139,10 +139,12 @@
opts[:search] = search
end
payload = {
messages: @store.latest(opts),
- total: @store.count
+ total: @store.count,
+ search: req['search'] || '',
+ filter: filter || '',
}
json = JSON.generate(payload)
[200, {"Content-Type" => "application/json"}, [json]]
end