Fix US-010: Route for control creation was calling store() instead of create()

This commit is contained in:
mahdahar 2026-01-16 16:38:27 +07:00
parent 44795310e1
commit 162805a038

View File

@ -31,7 +31,7 @@ $routes->group('api', function ($routes) {
$routes->get('control', 'Api\ControlApiController::index'); $routes->get('control', 'Api\ControlApiController::index');
$routes->get('control/(:num)', 'Api\ControlApiController::show/$1'); $routes->get('control/(:num)', 'Api\ControlApiController::show/$1');
$routes->get('control/(:num)/tests', 'Api\ControlApiController::getTests/$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->patch('control/(:num)', 'Api\ControlApiController::update/$1');
$routes->delete('control/(:num)', 'Api\ControlApiController::delete/$1'); $routes->delete('control/(:num)', 'Api\ControlApiController::delete/$1');