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();