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
						
					
					
				
			
		
		
		
			
			
			
				
					
				
				
					
				
			
		
		
	
	
							31 lines
						
					
					
						
							1.1 KiB
						
					
					
				
								<?php
							 | 
						|
								
							 | 
						|
								use App\Http\Controllers\GrabOrderController;
							 | 
						|
								use App\Http\Middleware\WechatAuth;
							 | 
						|
								use Illuminate\Support\Facades\Route;
							 | 
						|
								
							 | 
						|
								/*
							 | 
						|
								|--------------------------------------------------------------------------
							 | 
						|
								| Web Routes
							 | 
						|
								|--------------------------------------------------------------------------
							 | 
						|
								|
							 | 
						|
								| Here is where you can register web routes for your application. These
							 | 
						|
								| routes are loaded by the RouteServiceProvider within a group which
							 | 
						|
								| contains the "web" middleware group. Now create something great!
							 | 
						|
								|
							 | 
						|
								*/
							 | 
						|
								
							 | 
						|
								Route::get('/', function () {
							 | 
						|
								    return redirect('admin');
							 | 
						|
								});
							 | 
						|
								
							 | 
						|
								Route::middleware(WechatAuth::class)->group(function () {
							 | 
						|
								    Route::get('grab_order/{id}', [GrabOrderController::class, 'index'])->where(['id' => '\d+'])->name('grab_order');
							 | 
						|
								    Route::post('grab_order/{id}', [GrabOrderController::class, 'grabOrderPost'])->where(['id' => '\d+']);
							 | 
						|
								});
							 | 
						|
								
							 | 
						|
								Route::get('/test', 'TestController@Test');
							 | 
						|
								Route::get('/export', 'TestController@export');
							 | 
						|
								Route::any('/rpc', 'TestController@testRpc');
							 | 
						|
								Route::any('/map', 'TestController@testMap');
							 | 
						|
								Route::any('/add', 'Salesman@addData');
							 |