You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

152 lines
7.4 KiB

1 year ago
12 months ago
1 year ago
1 year ago
12 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. <?php
  2. use think\facade\Route;
  3. Route::get('/', 'index/index');
  4. Route::get('/download', 'index/download');
  5. Route::any('/panel/get_plugin_list', 'api/get_plugin_list');
  6. Route::any('/wpanel/get_plugin_list', 'api/get_plugin_list_win');
  7. Route::post('/down/download_plugin', 'api/download_plugin');
  8. Route::post('/down/download_plugin_main', 'api/download_plugin_main');
  9. Route::post('/panel/get_soft_list_status', 'api/return_success');
  10. Route::post('/panel/get_unbinding', 'api/return_success');
  11. Route::post('/bt_cert', 'api/return_error');
  12. Route::post('/Auth/GetAuthToken', 'api/get_auth_token');
  13. Route::post('/Auth/GetBindCode', 'api/return_error');
  14. Route::any('/bt_monitor/update_history', 'api/btm_update_history');
  15. Route::any('/bt_monitor/latest_version', 'api/btm_latest_version');
  16. Route::any('/bt_waf/get_malicious_ip', 'api/get_ssl_list');
  17. Route::any('/bt_waf/daily_count_v2', 'api/get_ssl_list');
  18. Route::any('/bt_waf/latest_version', 'api/btwaf_latest_version');
  19. Route::group('authorization', function () {
  20. Route::post('/login', 'api/authorization_login');
  21. Route::post('/info', 'api/authorization_info');
  22. Route::post('/info_v2', 'api/authorization_info');
  23. Route::post('/update_license', 'api/update_license');
  24. Route::post('/is_obtained_btw_trial', 'api/is_obtained_btw_trial');
  25. Route::miss('api/return_error');
  26. });
  27. Route::group('api', function () {
  28. Route::any('/panel/get_soft_list', 'api/get_plugin_list');
  29. Route::any('/panel/get_soft_list_test', 'api/get_plugin_list');
  30. Route::any('/wpanel/get_soft_list', 'api/get_plugin_list_win');
  31. Route::any('/wpanel/get_soft_list_test', 'api/get_plugin_list_win');
  32. Route::get('/getUpdateLogs', 'api/get_update_logs');
  33. Route::get('/panel/get_version', 'api/get_version');
  34. Route::get('/wpanel/get_version', 'api/get_version_win');
  35. Route::get('/SetupCount', 'api/setup_count');
  36. Route::any('/panel/updateLinux', 'api/check_update');
  37. Route::any('/wpanel/updateWindows', 'api/check_update_win');
  38. Route::post('/panel/check_auth_key', 'api/check_auth_key');
  39. Route::post('/panel/check_domain', 'api/check_domain');
  40. Route::post('/panel/check_files', 'api/return_empty');
  41. Route::get('/index/get_time', 'api/get_time');
  42. Route::get('/index/get_win_date', 'api/get_win_date');
  43. Route::get('/panel/is_pro', 'api/is_pro');
  44. Route::get('/getIpAddress', 'api/get_ip_address');
  45. Route::post('/Auth/GetAuthToken', 'api/get_auth_token');
  46. Route::post('/Auth/GetBindCode', 'api/return_error');
  47. Route::post('/Auth/GetSSLList', 'api/get_ssl_list');
  48. Route::post('/Cert/get_order_list', 'api/return_empty_array');
  49. Route::post('/Cert/get_product_list', 'api/return_success');
  50. Route::get('/Pluginother/get_file', 'api/download_plugin_other');
  51. Route::post('/Pluginother/create_order', 'api/return_error');
  52. Route::post('/Pluginother/renew_order', 'api/return_error');
  53. Route::post('/Pluginother/order_stat', 'api/return_empty');
  54. Route::post('/Pluginother/re_order_stat', 'api/return_empty');
  55. Route::post('/Pluginother/create_order_okey', 'api/return_empty');
  56. Route::post('/Plugin/check_order_pay_status', 'api/return_error');
  57. Route::post('/Plugin/get_product_discount', 'api/return_error');
  58. Route::post('/Plugin/get_order_list_byuser', 'api/return_page_data');
  59. Route::post('/Plugin/create_order', 'api/return_error');
  60. Route::post('/Plugin/check_product_pays', 'api/return_error');
  61. Route::post('/Plugin/get_product_list', 'api/return_empty_array');
  62. Route::post('/Plugin/get_re_order_status', 'api/return_error');
  63. Route::post('/Plugin/create_order_voucher', 'api/return_error');
  64. Route::post('/Plugin/get_voucher', 'api/return_empty_array');
  65. Route::post('/Plugin/check_plugin_status', 'api/return_success');
  66. Route::post('/invite/get_voucher', 'api/return_empty_array');
  67. Route::post('/invite/get_order_status', 'api/return_error');
  68. Route::post('/invite/get_product_discount_by', 'api/return_error');
  69. Route::post('/invite/get_re_order_status', 'api/return_error');
  70. Route::post('/invite/create_order_voucher', 'api/return_error');
  71. Route::post('/invite/create_order', 'api/return_error');
  72. Route::post('/panel/get_plugin_remarks', 'api/get_plugin_remarks');
  73. Route::post('/wpanel/get_plugin_remarks', 'api/get_plugin_remarks');
  74. Route::post('/panel/set_user_adviser', 'api/return_success');
  75. Route::post('/wpanel/get_messages', 'api/return_empty_array');
  76. Route::post('/panel/plugin_total', 'api/return_empty');
  77. Route::post('/panel/plugin_score', 'api/plugin_score');
  78. Route::post('/panel/get_plugin_socre', 'api/get_plugin_socre');
  79. Route::get('/panel/s_error', 'api/return_empty');
  80. Route::post('/panel/get_py_module', 'api/return_error');
  81. Route::post('/panel/total_keyword', 'api/return_empty');
  82. Route::post('/panel/model_total', 'api/return_empty');
  83. Route::post('/wpanel/model_click', 'api/return_empty');
  84. Route::post('/v2/statistics/report_plugin_daily', 'api/return_error');
  85. Route::get('/panel/notpro', 'api/return_empty');
  86. Route::post('/Btdeployment/get_deplist', 'api/get_deplist');
  87. Route::post('/panel/get_deplist', 'api/get_deplist');
  88. Route::get('/ip/info_json', 'api/return_empty_array');
  89. Route::post('/LinuxBeta', 'api/return_error');
  90. Route::post('/panel/apple_beta', 'api/return_error');
  91. Route::post('/wpanel/apple_beta', 'api/return_error');
  92. Route::post('/panel/to_not_beta', 'api/return_error');
  93. Route::post('/wpanel/to_not_beta', 'api/return_error');
  94. Route::post('/panel/to_beta', 'api/return_error');
  95. Route::post('/wpanel/to_beta', 'api/return_error');
  96. Route::get('/panel/get_beta_logs', 'api/get_beta_logs');
  97. Route::get('/wpanel/get_beta_logs', 'api/get_beta_logs');
  98. Route::post('/v2/common_v1_authorization/get_pricing', 'api/return_error2');
  99. Route::any('/bt_waf/getSpiders', 'api/btwaf_getspiders');
  100. Route::post('/bt_waf/addSpider', 'api/return_empty');
  101. Route::post('/bt_waf/getVulScanInfoList', 'api/return_empty');
  102. Route::post('/bt_waf/reportInterceptFail', 'api/return_empty');
  103. Route::miss('api/return_error');
  104. });
  105. Route::get('/admin/verifycode', 'admin/verifycode')->middleware(\think\middleware\SessionInit::class);
  106. Route::any('/admin/login', 'admin/login')->middleware(\think\middleware\SessionInit::class);
  107. Route::get('/admin/logout', 'admin/logout');
  108. Route::group('admin', function () {
  109. Route::get('/', 'admin/index');
  110. Route::any('/set', 'admin/set');
  111. Route::post('/setaccount', 'admin/setaccount');
  112. Route::post('/testbturl', 'admin/testbturl');
  113. Route::get('/plugins', 'admin/plugins');
  114. Route::get('/pluginswin', 'admin/pluginswin');
  115. Route::post('/plugins_data', 'admin/plugins_data');
  116. Route::post('/download_plugin', 'admin/download_plugin');
  117. Route::get('/refresh_plugins', 'admin/refresh_plugins');
  118. Route::get('/record', 'admin/record');
  119. Route::post('/record_data', 'admin/record_data');
  120. Route::get('/log', 'admin/log');
  121. Route::post('/log_data', 'admin/log_data');
  122. Route::get('/list', 'admin/list');
  123. Route::post('/list_data', 'admin/list_data');
  124. Route::post('/list_op', 'admin/list_op');
  125. Route::get('/deplist', 'admin/deplist');
  126. Route::get('/refresh_deplist', 'admin/refresh_deplist');
  127. Route::get('/cleancache', 'admin/cleancache');
  128. })->middleware(\app\middleware\CheckAdmin::class);
  129. Route::any('/installapp', 'install/index');
  130. Route::miss(function() {
  131. return response('404 Not Found')->code(404);
  132. });