mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 04:13:58 +00:00
contract entity api
This commit is contained in:
+46
-1
@@ -278,7 +278,6 @@ Route::group(['namespace' => 'User', 'prefix' => 'user-backsys/api'], function (
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
// Contract
|
||||
Route::prefix('contract')->group(function () {
|
||||
Route::get('list',
|
||||
@@ -302,6 +301,13 @@ Route::group(['namespace' => 'User', 'prefix' => 'user-backsys/api'], function (
|
||||
'middleware' => ['permission:add contract']
|
||||
]
|
||||
);
|
||||
Route::put('assign-entity/{hash_id}',
|
||||
[
|
||||
'as' => 'api.contract.assign-entity',
|
||||
'uses' => 'ContractController@assignEntity',
|
||||
'middleware' => ['permission:edit contract']
|
||||
]
|
||||
);
|
||||
Route::post('valid-check/{hash_id?}',
|
||||
[
|
||||
'as' => 'api.contract.valid-check',
|
||||
@@ -311,6 +317,45 @@ Route::group(['namespace' => 'User', 'prefix' => 'user-backsys/api'], function (
|
||||
);
|
||||
});
|
||||
|
||||
// Contract Entit
|
||||
Route::prefix('contract-entity')->group(function () {
|
||||
Route::get('list',
|
||||
[
|
||||
'as' => 'api.contract-entity.list',
|
||||
'uses' => 'ContractEntityController@list',
|
||||
'middleware' => ['permission:view contract_entity']
|
||||
]
|
||||
);
|
||||
Route::get('show/{hash_id}',
|
||||
[
|
||||
'as' => 'api.contract-entity.show',
|
||||
'uses' => 'ContractEntityController@show',
|
||||
'middleware' => ['permission:view contract_entity']
|
||||
]
|
||||
);
|
||||
Route::post('store',
|
||||
[
|
||||
'as' => 'api.contract-entity.store',
|
||||
'uses' => 'ContractEntityController@store',
|
||||
'middleware' => ['permission:add contract_entity']
|
||||
]
|
||||
);
|
||||
Route::put('update/{hash_id}',
|
||||
[
|
||||
'as' => 'api.contract-entity.update',
|
||||
'uses' => 'ContractEntityController@update',
|
||||
'middleware' => ['permission:edit contract_entity']
|
||||
]
|
||||
);
|
||||
Route::delete('delete/{hash_id}',
|
||||
[
|
||||
'as' => 'api.contract-entity.delete',
|
||||
'uses' => 'ContractEntityController@delete',
|
||||
'middleware' => ['permission:delete contract_entity']
|
||||
]
|
||||
);
|
||||
});
|
||||
|
||||
// contract generate
|
||||
// contract assign entity
|
||||
// contract active
|
||||
|
||||
Reference in New Issue
Block a user