Add search configuration to instance api

This commit is contained in:
noellabo 2023-09-21 17:55:01 +09:00
parent 04ad5e67d0
commit 4d6c2ab94a

View file

@ -77,6 +77,13 @@ class REST::InstanceSerializer < ActiveModel::Serializer
translation: { translation: {
enabled: TranslationService.configured?, enabled: TranslationService.configured?,
}, },
search: {
enabled: Chewy.enabled?,
supported_prefix: SearchQueryTransformer::SUPPORTED_PREFIXES,
supported_properties: SearchQueryTransformer::SUPPORTED_PROPERTIES,
supported_operator: SearchQueryTransformer::SUPPORTED_OPERATOR,
},
} }
end end