diff --git a/app/services/label_printers/fluics/api_client.rb b/app/services/label_printers/fluics/api_client.rb index 9e6120124..a2b87fa6c 100644 --- a/app/services/label_printers/fluics/api_client.rb +++ b/app/services/label_printers/fluics/api_client.rb @@ -42,6 +42,11 @@ module LabelPrinters ) end + def list_templates + group_name = ENV['FLUICS_TEMPLATES_GROUP'] || '' + do_request(:get, '/get_templates', params: { query: { templateGroups: group_name } }) + end + private def do_request(http_method, path, params: {})