mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/izyim-api.git
synced 2026-08-19 12:34:06 +00:00
44 lines
1.6 KiB
PHP
44 lines
1.6 KiB
PHP
<?php
|
|
|
|
use Illuminate\Http\Request;
|
|
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| API Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register API routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| 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/{so_id}', 'SoController@showso');//get the shipping 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
|
|
|
|
//Route for the shipping order item
|
|
|
|
Route::delete('/so/soitem/{so_id}', 'SoController@deleteitem');//delete the shipping order item
|
|
Route::put('/so/soitem/{so_id}', 'SoController@updateitem');//update the shipping order item
|
|
|
|
|
|
|
|
//Route::middleware('auth:api')->get('/user', function (Request $request) {
|
|
// return $request->user();
|
|
//});
|
|
|
|
Route::post('register', 'AuthController@register');
|
|
Route::post('login', 'AuthController@login');
|
|
Route::post('recover', 'AuthController@recover');
|
|
|
|
Route::group(['middleware' => ['jwt.auth']], function() {
|
|
Route::get('logout', 'AuthController@logout');
|
|
Route::get('test', function(){
|
|
return response()->json(['foo'=>'bar']);
|
|
});
|
|
}); |