mirror of
				https://github.com/v2board/v2board.git
				synced 2025-10-31 01:11:46 +08:00 
			
		
		
		
	update
This commit is contained in:
		
							
								
								
									
										18
									
								
								app/Http/Controllers/Guest/CommController.php
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								app/Http/Controllers/Guest/CommController.php
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,18 @@ | |||||||
|  | <?php | ||||||
|  |  | ||||||
|  | namespace App\Http\Controllers\Guest; | ||||||
|  |  | ||||||
|  | use App\Utils\Dict; | ||||||
|  | use App\Http\Controllers\Controller; | ||||||
|  |  | ||||||
|  | class CommController extends Controller | ||||||
|  | { | ||||||
|  |     public function config() | ||||||
|  |     { | ||||||
|  |         return response([ | ||||||
|  |             'data' => [ | ||||||
|  |                 'tos_url' => config('v2board.tos_url') | ||||||
|  |             ] | ||||||
|  |         ]); | ||||||
|  |     } | ||||||
|  | } | ||||||
| @@ -22,6 +22,8 @@ class GuestRoute | |||||||
|             $router->post('/telegram/webhook', 'Guest\\TelegramController@webhook'); |             $router->post('/telegram/webhook', 'Guest\\TelegramController@webhook'); | ||||||
|             // Payment |             // Payment | ||||||
|             $router->match(['get', 'post'], '/payment/notify/{method}/{id}', 'Guest\\PaymentController@notify'); |             $router->match(['get', 'post'], '/payment/notify/{method}/{id}', 'Guest\\PaymentController@notify'); | ||||||
|  |             // Comm | ||||||
|  |             $router->get ('/comm/config', 'Guest\\CommController@config'); | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
| } | } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user