language/category filtering in /nojs endpoint

Adds language and category filter in /nojs.
Unlike the main page, the filtering is only done after user submits the form.
This commit is contained in:
Nikhil Tanwar
2023-02-18 17:55:45 +05:30
parent f843ea48f0
commit 37aadb86fb
6 changed files with 70 additions and 3 deletions

View File

@ -120,6 +120,8 @@ class Filter {
Filter& maxSize(size_t size);
Filter& query(std::string query, bool partial=true);
Filter& name(std::string name);
Filter& clearLang();
Filter& clearCategory();
bool hasQuery() const;
const std::string& getQuery() const { return _query; }