Integrate the sortable-attributes into the settings

This commit is contained in:
Kerollmops 2021-08-24 15:46:14 +02:00
parent 51387b2c80
commit ea4c831de0
No known key found for this signature in database
GPG key ID: 92ADA4E935E71FA4
5 changed files with 28 additions and 5 deletions

View file

@ -80,6 +80,13 @@ make_setting_route!(
"filterableAttributes"
);
make_setting_route!(
"/sortable-attributes",
std::collections::HashSet<String>,
sortable_attributes,
"sortableAttributes"
);
make_setting_route!(
"/displayed-attributes",
Vec<String>,
@ -132,6 +139,7 @@ macro_rules! generate_configure {
generate_configure!(
filterable_attributes,
sortable_attributes,
displayed_attributes,
searchable_attributes,
distinct_attribute,