fix: support both GET and POST for handshake endpoint (backward compatibility)

This commit is contained in:
xboard 2026-04-17 20:59:48 +08:00
parent 2671cd3f2d
commit b9f3bc29dc

View File

@ -16,7 +16,7 @@ class ServerRoute
'prefix' => 'server',
'middleware' => 'server'
], function ($route) {
$route->post('handshake', [ServerController::class, 'handshake']);
$route->match(['GET', 'POST'], 'handshake', [ServerController::class, 'handshake']);
$route->post('report', [ServerController::class, 'report']);
$route->get('config', [UniProxyController::class, 'config']);
$route->get('user', [UniProxyController::class, 'user']);