链街Dcat后台
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.

31 lines
1.1 KiB

5 years ago
5 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <?php
  2. use App\Http\Controllers\GrabOrderController;
  3. use App\Http\Middleware\WechatAuth;
  4. use Illuminate\Support\Facades\Route;
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Web Routes
  8. |--------------------------------------------------------------------------
  9. |
  10. | Here is where you can register web routes for your application. These
  11. | routes are loaded by the RouteServiceProvider within a group which
  12. | contains the "web" middleware group. Now create something great!
  13. |
  14. */
  15. Route::get('/', function () {
  16. return redirect('admin');
  17. });
  18. Route::middleware(WechatAuth::class)->group(function () {
  19. Route::get('grab_order/{id}', [GrabOrderController::class, 'index'])->where(['id' => '\d+'])->name('grab_order');
  20. Route::post('grab_order/{id}', [GrabOrderController::class, 'grabOrderPost'])->where(['id' => '\d+']);
  21. });
  22. Route::get('/test', 'TestController@Test');
  23. Route::get('/export', 'TestController@export');
  24. Route::any('/rpc', 'TestController@testRpc');
  25. Route::any('/map', 'TestController@testMap');
  26. Route::any('/add', 'Salesman@addData');