Skip to content
Snippets Groups Projects
Commit b1b65e4e authored by Александр Плохих's avatar Александр Плохих :waxing_gibbous_moon:
Browse files

rm manual http status init in resp

parent 90b33d9e
No related branches found
No related tags found
1 merge request!2Ptps|controller 2
......@@ -15,16 +15,13 @@ class SortPriceController extends AbstractController
{
/**
* Контроллер волняет сортировку массива по убыванию цены используя sortPrice
* @param Request $request
* @param PricesRequest $request
* @param SortPriceAction $action
* @return JsonResponse
*/
#[Route('/sort/price', name: 'app_sort_price', methods: ['POST'])]
public function index(PricesRequest $request, SortPriceAction $action): JsonResponse
{
return new JsonResponse(
$action->act($request->serialise()),
200
);
return new JsonResponse($action->act($request->serialise()));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment