Skip to content

Commit

Permalink
Merge pull request EC-CUBE#6174 from chihiro-adachi/fix-route-method
Browse files Browse the repository at this point in the history
methodを指定するように修正
  • Loading branch information
ji-eunsoo authored May 1, 2024
2 parents 4687357 + 05bc984 commit e64f29d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ public function moveSortNo(Request $request)
/**
* 規格分類CSVの出力.
*
* @Route("/%eccube_admin_route%/product/class_category/export/{class_name_id}", name="admin_product_class_category_export")
* @Route("/%eccube_admin_route%/product/class_category/export/{class_name_id}", name="admin_product_class_category_export", methods={"GET"})
*
* @param Request $request
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public function moveSortNo(Request $request)
/**
* 規格CSVの出力.
*
* @Route("/%eccube_admin_route%/product/class_name/export", name="admin_product_class_name_export")
* @Route("/%eccube_admin_route%/product/class_name/export", name="admin_product_class_name_export", methods={"GET"})
*
* @param Request $request
*
Expand Down
4 changes: 2 additions & 2 deletions src/Eccube/Controller/Admin/Product/CsvImportController.php
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ public function csvCategory(Request $request, CacheUtil $cacheUtil)
/**
* 規格登録CSVアップロード
*
* @Route("/%eccube_admin_route%/product/class_name_csv_upload", name="admin_product_class_name_csv_import")
* @Route("/%eccube_admin_route%/product/class_name_csv_upload", name="admin_product_class_name_csv_import", methods={"GET", "POST"})
* @Template("@admin/Product/csv_class_name.twig")
*/
public function csvClassName(Request $request, CacheUtil $cacheUtil)
Expand Down Expand Up @@ -977,7 +977,7 @@ public function csvClassName(Request $request, CacheUtil $cacheUtil)
/**
* 規格分類CSV登録CSVアップロード
*
* @Route("/%eccube_admin_route%/product/class_category_csv_upload", name="admin_product_class_category_csv_import")
* @Route("/%eccube_admin_route%/product/class_category_csv_upload", name="admin_product_class_category_csv_import", methods={"GET", "POST"})
* @Template("@admin/Product/csv_class_category.twig")
*/
public function csvClassCategory(Request $request, CacheUtil $cacheUtil)
Expand Down
2 changes: 1 addition & 1 deletion src/Eccube/Controller/Block/AutoNewItemController.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function __construct(
}

/**
* @Route("/block/auto_new_item", name="block_auto_new_item")
* @Route("/block/auto_new_item", name="block_auto_new_item", methods={"GET"})
* @Template("Block/auto_new_item.twig")
*
* @param Request $request
Expand Down

0 comments on commit e64f29d

Please sign in to comment.