mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-01-23 02:58:14 -05:00
52 lines
2.1 KiB
PHP
52 lines
2.1 KiB
PHP
<?php
|
|
namespace App\Http\Routes\V1;
|
|
|
|
use App\Http\Controllers\V1\Server\DeepbworkController;
|
|
use App\Http\Controllers\V1\Server\ShadowsocksTidalabController;
|
|
use App\Http\Controllers\V1\Server\TrojanTidalabController;
|
|
use App\Http\Controllers\V1\Server\UniProxyController;
|
|
use Illuminate\Contracts\Routing\Registrar;
|
|
|
|
class ServerRoute
|
|
{
|
|
public function map(Registrar $router)
|
|
{
|
|
$router->group([
|
|
'prefix' => 'server',
|
|
], function ($router) {
|
|
$router->group([
|
|
'prefix' => 'UniProxy',
|
|
'middleware' => 'server'
|
|
] ,function ($route) {
|
|
$route->get('config', [UniProxyController::class, 'config']);
|
|
$route->get('user', [UniProxyController::class, 'user']);
|
|
$route->post('push', [UniProxyController::class, 'push']);
|
|
$route->post('alive', [UniProxyController::class, 'alive']);
|
|
});
|
|
$router->group([
|
|
'prefix' => 'Deepbwork',
|
|
'middleware' => 'server:vmess'
|
|
], function ($route) {
|
|
$route->get('config', [DeepbworkController::class, 'config']);
|
|
$route->get('user', [DeepbworkController::class, 'user']);
|
|
$route->post('submit', [DeepbworkController::class, 'submit']);
|
|
});
|
|
$router->group([
|
|
'prefix' => 'ShadowsocksTidalab',
|
|
'middleware' => 'server:shadowsocks'
|
|
], function ($route) {
|
|
$route->get('user', [ShadowsocksTidalabController::class, 'user']);
|
|
$route->post('submit', [ShadowsocksTidalabController::class, 'submit']);
|
|
});
|
|
$router->group([
|
|
'prefix' => 'TrojanTidalab',
|
|
'middleware' => 'server:trojan'
|
|
], function ($route) {
|
|
$route->get('config', [TrojanTidalabController::class, 'config']);
|
|
$route->get('user', [TrojanTidalabController::class, 'user']);
|
|
$route->post('submit', [TrojanTidalabController::class, 'submit']);
|
|
});
|
|
});
|
|
}
|
|
}
|