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.

156 lines
7.6 KiB

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