mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-23 19:37:35 +08:00
fix: support both GET and POST for handshake endpoint (backward compatibility)
This commit is contained in:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user