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 fea7d97aa3
commit f84afc7903
+1 -1
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']);