35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\InternalService\ApiController;
|
|
use App\Http\Controllers\Pay\NotifyController;
|
|
use App\Http\Controllers\Platform\PlatformApi;
|
|
use App\Http\Controllers\Tests\TestController;
|
|
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('t/{fun?}', [TestController::class, 't']);
|
|
|
|
// 主页
|
|
Route::get('/', function () {
|
|
return view('welcome');
|
|
});
|
|
|
|
Route::any('notify/pay_wechat/{config_name}', [NotifyController::class, 'payWechat']); // 通知 - 支付 - 微信
|
|
Route::any('notify/message_wechat_mini/{config_name}', [NotifyController::class, 'messageWechatMini']); // 通知 - 消息 - 微信小程序
|
|
|
|
// 平台API
|
|
Route::any('platformApi/handle', [PlatformApi::class, 'handle']);
|
|
// 内部API
|
|
Route::any('internalServiceApi/handle', [ApiController::class, 'handle']);
|