From 7c0c86e4fe8c4fc52cd495a3596860127683a859 Mon Sep 17 00:00:00 2001 From: Zain Fauzan Rofie Azizi Date: Fri, 4 May 2018 16:39:17 +0800 Subject: [PATCH] added route for shipping-order --- routes/api.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/routes/api.php b/routes/api.php index aff41ed..cf9e51c 100644 --- a/routes/api.php +++ b/routes/api.php @@ -12,6 +12,15 @@ use Illuminate\Http\Request; | is assigned the "api" middleware group. Enjoy building your API! | */ +//Route for the shipping order +Route::get('/so', 'SoController@index');// get the list of the shipping order +Route::get('/so/{id}', 'SoController@index');//get the shipping order + +Route::post('/so', 'SoController@store');//create shipping order +Route::post('/so/{id}/cancel-order', 'SoController@store');//post the cancel order + +Route::delete('/so/{id}', 'SoController@delete');// delete the shipping order +Route::put('/so/{id}', 'SoController@update');//update the shipping order //Route::middleware('auth:api')->get('/user', function (Request $request) { // return $request->user();