added route for shipping-order

This commit is contained in:
Zain Fauzan Rofie Azizi
2018-05-04 16:39:17 +08:00
parent 737c7da54f
commit 7c0c86e4fe
+9
View File
@@ -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();