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.

165 lines
8.0 KiB

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