HEX
Server: nginx/1.24.0
System: Linux prod-btpayments-io 6.14.0-1018-aws #18~24.04.1-Ubuntu SMP Mon Nov 24 19:46:27 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.3.19
Disabled: NONE
Upload Files
File: /var/www/BtPayments/BtPayments-platform/routes/web-portal.php
<?php

use Illuminate\Support\Facades\Route;

/**
 * 商户后台路由
 */
Route::middleware(['auth', 'verified'])->domain(config('platform.portal_domain'))->namespace('Portal')->group(function () {
    Route::get('/', function () { return redirect()->route('overview.index'); })->name('home');

    Route::get('get-started', 'HomeController@getStarted')->name('home.get-started');

    Route::get('overview', 'OverviewController@index')->name('overview.index');

    Route::get('balance', 'HomeController@balance')->name('home.balance');

    Route::get('integration', 'MerchantController@index')->name('integration.index');
    Route::prefix('integrations')->group(function () {
        Route::get('form', 'IntegrationController@form')->name('integrations.form');
        Route::get('shopify', 'IntegrationController@shopify')->name('integrations.shopify');
        Route::post('shopify', 'IntegrationController@shopifyStore')->name('integrations.shopify.store');
    });

    Route::prefix('merchants')->group(function () {
        Route::get('/', 'MerchantController@index')->name('merchants.index');
        Route::get('create', 'MerchantController@create')->name('merchants.create');
        Route::post('/', 'MerchantController@store')->name('merchants.store');
    });

    Route::prefix('payments')->group(function () {
        Route::get('/', 'PaymentController@index')->name('payments.index');
        Route::post('/', 'PaymentController@store')->name('payments.store');
        Route::get('create', 'PaymentController@create')->name('payments.create');
        Route::get('{payment}', 'PaymentController@show')->name('payments.show')->where('payment', '[0-9a-zA-Z]+');
    });

    Route::resource('withdraws', 'WithdrawController')->names('withdraws')->except(['edit', 'update', 'destroy']);

    Route::resource('withdraw-accounts', 'WithdrawAccountController')->names('withdraw-accounts');
});