From 162805a038796ce70dcb4179536d8ca44a16a347 Mon Sep 17 00:00:00 2001 From: mahdahar <89adham@gmail.com> Date: Fri, 16 Jan 2026 16:38:27 +0700 Subject: [PATCH] Fix US-010: Route for control creation was calling store() instead of create() --- app/Config/Routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Config/Routes.php b/app/Config/Routes.php index 60f7745..460ec35 100644 --- a/app/Config/Routes.php +++ b/app/Config/Routes.php @@ -31,7 +31,7 @@ $routes->group('api', function ($routes) { $routes->get('control', 'Api\ControlApiController::index'); $routes->get('control/(:num)', 'Api\ControlApiController::show/$1'); $routes->get('control/(:num)/tests', 'Api\ControlApiController::getTests/$1'); - $routes->post('control', 'Api\ControlApiController::store'); + $routes->post('control', 'Api\ControlApiController::create'); $routes->patch('control/(:num)', 'Api\ControlApiController::update/$1'); $routes->delete('control/(:num)', 'Api\ControlApiController::delete/$1');