26 lines
700 B
PHP
26 lines
700 B
PHP
<?php
|
|
|
|
use think\facade\Route;
|
|
|
|
//协议
|
|
Route::group('agreement', function () {
|
|
|
|
Route::get('keylst', '/getKeyLst')->name('systemAgreeKeyLsy')->option([
|
|
'_alias' => '协议列表',
|
|
]);
|
|
|
|
Route::get(':key', '/getAgree')->name('systemAgreeDetail')->option([
|
|
'_alias'=> '协议',
|
|
'_auth' => false,
|
|
'_form' => 'systemAgreeSave',
|
|
]);
|
|
|
|
Route::post(':key', '/saveAgree')->name('systemAgreeSave')->option([
|
|
'_alias' => '协议保存',
|
|
'_init' => [ \crmeb\services\UpdateAuthInit::class,'agreement'],
|
|
]);
|
|
|
|
})->prefix('admin.system.Cache')->option([
|
|
'_path' => '/setting/agreements',
|
|
'_auth' => true,
|
|
]); |