api: add /explore/posts/searches.json, /explore/posts/missed_searches.json.

This commit is contained in:
evazion
2020-06-27 02:09:51 -05:00
parent dd857c6695
commit 24e299cf93

View File

@@ -29,10 +29,12 @@ module Explore
def searches
@date, @scale, @min_date, @max_date = parse_date(params)
@searches = ReportbooruService.new.post_search_rankings(@date)
respond_with(@searches)
end
def missed_searches
@missed_searches = ReportbooruService.new.missed_search_rankings
respond_with(@missed_searches)
end
private