mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 04:13:58 +00:00
contract active api
This commit is contained in:
+30
-4
@@ -301,10 +301,10 @@ Route::group(['namespace' => 'User', 'prefix' => 'user-backsys/api'], function (
|
||||
'middleware' => ['permission:add contract']
|
||||
]
|
||||
);
|
||||
Route::put('assign-entity/{hash_id}',
|
||||
Route::put('active/{hash_id}',
|
||||
[
|
||||
'as' => 'api.contract.assign-entity',
|
||||
'uses' => 'ContractController@assignEntity',
|
||||
'as' => 'api.contract.active',
|
||||
'uses' => 'ContractController@active',
|
||||
'middleware' => ['permission:edit contract']
|
||||
]
|
||||
);
|
||||
@@ -317,7 +317,7 @@ Route::group(['namespace' => 'User', 'prefix' => 'user-backsys/api'], function (
|
||||
);
|
||||
});
|
||||
|
||||
// Contract Entit
|
||||
// Contract Entity
|
||||
Route::prefix('contract-entity')->group(function () {
|
||||
Route::get('list',
|
||||
[
|
||||
@@ -356,6 +356,32 @@ Route::group(['namespace' => 'User', 'prefix' => 'user-backsys/api'], function (
|
||||
);
|
||||
});
|
||||
|
||||
// Contract Obligation
|
||||
Route::prefix('contract-obligation')->group(function () {
|
||||
Route::get('list',
|
||||
[
|
||||
'as' => 'api.contract-entity.list',
|
||||
'uses' => 'ContractObligationController@list',
|
||||
'middleware' => ['permission:view contract_obligation']
|
||||
]
|
||||
);
|
||||
Route::get('show/{hash_id}',
|
||||
[
|
||||
'as' => 'api.contract-entity.show',
|
||||
'uses' => 'ContractObligationController@show',
|
||||
'middleware' => ['permission:view contract_obligation']
|
||||
]
|
||||
);
|
||||
Route::put('assign-contract-entity/{hash_id}',
|
||||
[
|
||||
'as' => 'api.contract-entity.update',
|
||||
'uses' => 'ContractObligationController@assignContractEntity',
|
||||
'middleware' => ['permission:edit contract_obligation']
|
||||
]
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
// contract generate
|
||||
// contract assign entity
|
||||
// contract active
|
||||
|
||||
Reference in New Issue
Block a user