Skip to content

Commit

Permalink
Add other missing route
Browse files Browse the repository at this point in the history
  • Loading branch information
loevgaard committed Aug 15, 2024
1 parent 6a41deb commit fbd91c8
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/Resources/config/routes/product_variant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,16 @@ sylius_admin_ajax_all_product_variants_by_phrase:
phrase: $phrase
locale: expr:service('sylius.context.locale').getLocaleCode()
limit: 25

sylius_admin_ajax_all_product_variants_by_codes:
path: /all
methods: [GET]
defaults:
_controller: sylius.controller.product_variant:indexAction
_format: json
_sylius:
serialization_groups: [Autocomplete]
permission: true
repository:
method: findByCodes
arguments: [$code]

0 comments on commit fbd91c8

Please sign in to comment.