Skip to content

Commit

Permalink
Prefix AJAX routes with ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
maximehuran committed Apr 9, 2024
1 parent 6bcf015 commit eaaf92b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Resources/config/routes/admin.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,15 @@ monsieurbiz_menu_admin_menu_item_move_down:
_sylius: *move_sylius

monsieurbiz_menu_admin_browser_list:
path: /menus-browser/list
path: /ajax/menus-browser/list
methods: [GET]
defaults:
_controller: 'MonsieurBiz\SyliusMenuPlugin\Controller\BrowserController::listAction'
condition: 'request.headers.get("X-Requested-With") == "XMLHttpRequest"'


monsieurbiz_menu_admin_browser_list_items:
path: /menus-browser/list-items
path: /ajax/menus-browser/list-items
methods: [GET]
defaults:
_controller: 'MonsieurBiz\SyliusMenuPlugin\Controller\BrowserController::listItemsAction'
Expand Down

0 comments on commit eaaf92b

Please sign in to comment.