修正路由

This commit is contained in:
2023-11-20 15:35:24 +08:00
parent 083484aad6
commit 65a5f6bc4d
6 changed files with 78 additions and 45 deletions
+4 -3
View File
@@ -25,6 +25,7 @@ use App\Controller\PatientCenterController;
use App\Controller\PatientDoctorController;
use App\Controller\PatientFamilyController;
use App\Controller\PatientOrderController;
use App\Controller\PatientPathographyController;
use App\Controller\SafeController;
use App\Controller\SystemController;
use App\Controller\TestController;
@@ -384,10 +385,10 @@ Router::addGroup('/patient', function () {
// 病情记录
Router::addGroup('/pathography', function () {
// 检测家庭成员是否存在病情记录
Router::get('/exist/{family_id:\d+}', [PatientFamilyController::class, 'existFamilyPathography']);
Router::get('/exist', [PatientPathographyController::class, 'existFamilyPathography']);
// // 获取家庭成员病情记录列表-分页
// Router::get('/exist/{family_id:\d+}', [PatientPathographyController::class, 'existFamilyPathography']);
// 获取家庭成员病情记录列表-分页
Router::get('/{family_id:\d+}', [PatientPathographyController::class, 'existFamilyPathography']);
});
});