This commit is contained in:
杨志
2026-01-21 09:18:19 +08:00
parent a562c95b10
commit eed3540f3d
3 changed files with 35 additions and 12 deletions

View File

@@ -22,7 +22,7 @@ Route::post('auth/doLogin', 'auth/doLogin');
Route::get('auth/logout', 'auth/logout');
// 爬虫工具路由(需要登录)
Route::get('crawler', 'crawler/index');
// 注意API路由必须在index路由之前定义确保优先匹配
Route::get('crawler/getUserConfig', 'crawler/getUserConfig');
Route::post('crawler/saveUserConfig', 'crawler/saveUserConfig');
Route::post('crawler/getDsdmOptions', 'crawler/getDsdmOptions');
@@ -30,6 +30,7 @@ Route::post('crawler/getZwdmList', 'crawler/getZwdmList');
Route::post('crawler/getPositionInfo', 'crawler/getPositionInfo');
Route::post('crawler/batchGetPositionInfo', 'crawler/batchGetPositionInfo');
Route::post('crawler/fetchAllPositions', 'crawler/fetchAllPositions');
Route::get('crawler', 'crawler/index');
// 管理员路由(需要登录且为管理员)
// 注意API路由必须在index路由之前定义确保优先匹配