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