mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/unity.git
synced 2026-08-19 04:13:58 +00:00
contract template obligation api
This commit is contained in:
@@ -52,6 +52,45 @@ Route::group(['namespace' => 'User', 'prefix' => 'user-backsys/api'], function (
|
||||
);
|
||||
});
|
||||
|
||||
// Contract Templete Obligation
|
||||
Route::prefix('contract-template-obligation')->group(function () {
|
||||
Route::get('list',
|
||||
[
|
||||
'as' => 'api.contract-template-obligation.list',
|
||||
'uses' => 'ContractTemplateObligationController@list',
|
||||
'middleware' => ['permission:view contract_template_obligation']
|
||||
]
|
||||
);
|
||||
Route::get('show/{hash_id}',
|
||||
[
|
||||
'as' => 'api.contract-template-obligation.show',
|
||||
'uses' => 'ContractTemplateObligationController@show',
|
||||
'middleware' => ['permission:view contract_template_obligation']
|
||||
]
|
||||
);
|
||||
Route::post('store',
|
||||
[
|
||||
'as' => 'api.contract-template-obligation.store',
|
||||
'uses' => 'ContractTemplateObligationController@store',
|
||||
'middleware' => ['permission:add contract_template_obligation']
|
||||
]
|
||||
);
|
||||
Route::put('update/{hash_id}',
|
||||
[
|
||||
'as' => 'api.contract-template-obligation.update',
|
||||
'uses' => 'ContractTemplateObligationController@update',
|
||||
'middleware' => ['permission:edit contract_template_obligation']
|
||||
]
|
||||
);
|
||||
Route::delete('delete/{hash_id}',
|
||||
[
|
||||
'as' => 'api.contract-template-obligation.delete',
|
||||
'uses' => 'ContractTemplateObligationController@delete',
|
||||
'middleware' => ['permission:delete contract_template_obligation']
|
||||
]
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user