From 137b9dc5764f964f033ab9c93ec7e6279ab3e62c Mon Sep 17 00:00:00 2001 From: Zain Fauzan Rofie Azizi Date: Thu, 17 May 2018 09:18:03 +0800 Subject: [PATCH] remove id at store, rename cancel order --- app/Http/Controllers/SoController.php | 2 +- routes/api.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/SoController.php b/app/Http/Controllers/SoController.php index c329bdc..5e6c7a9 100644 --- a/app/Http/Controllers/SoController.php +++ b/app/Http/Controllers/SoController.php @@ -76,7 +76,7 @@ class SoController extends Controller * @return \Illuminate\Http\Response */ //post the cancel order - public function cancelorder(Request $request) + public function cancelOrder(Request $request) { // } diff --git a/routes/api.php b/routes/api.php index da283a7..55a466a 100644 --- a/routes/api.php +++ b/routes/api.php @@ -16,8 +16,8 @@ use Illuminate\Http\Request; //Route for the shipping order Route::get('/so', 'SoController@index');// get the list of the shipping order Route::get('/so/{so_id}', 'SoController@so');//get the shipping order -Route::post('/so/{so_id}', 'SoController@store');//store shipping order -Route::post('/so/{so_id}/cancel-order', 'SoController@cancelorder');//post the cancel order +Route::post('/so', 'SoController@store');//store shipping order +Route::post('/so/{so_id}/cancelOrder', 'SoController@cancelOrder');//post the cancel order Route::delete('/so/{so_id}', 'SoController@delete');// delete the shipping order Route::put('/so/{so_id}', 'SoController@update');//update the shipping order