mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-03 10:30:51 +08:00
- Implement Workerman-based `xboard:ws-server` for real-time node synchronization. - Support custom routes, outbounds, and certificate configurations via JSON. - Optimize scheduled tasks with `lazyById` to minimize memory footprint. - Enhance reactivity using Observers for `Plan`, `Server`, and `ServerRoute`. - Expand protocol support for `httpupgrade`, `h2`, and `mieru`.
21 lines
532 B
PHP
21 lines
532 B
PHP
<?php
|
|
namespace App\Http\Routes\V2;
|
|
|
|
use App\Http\Controllers\V2\Client\AppController;
|
|
use Illuminate\Contracts\Routing\Registrar;
|
|
|
|
class ClientRoute
|
|
{
|
|
public function map(Registrar $router)
|
|
{
|
|
$router->group([
|
|
'prefix' => 'client',
|
|
'middleware' => 'client'
|
|
], function ($router) {
|
|
// App
|
|
$router->get('/app/getConfig', [AppController::class, 'getConfig']);
|
|
$router->get('/app/getVersion', [AppController::class, 'getVersion']);
|
|
});
|
|
}
|
|
}
|