entity api

This commit is contained in:
glovetleong
2021-07-01 13:54:29 +08:00
parent 2b65de855a
commit bf8a18a4fd
8 changed files with 367 additions and 4 deletions
+39
View File
@@ -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',