fix: support both GET and POST for handshake endpoint (backward compatibility)
This commit is contained in:
@@ -16,7 +16,7 @@ class ServerRoute
|
|||||||
'prefix' => 'server',
|
'prefix' => 'server',
|
||||||
'middleware' => 'server'
|
'middleware' => 'server'
|
||||||
], function ($route) {
|
], function ($route) {
|
||||||
$route->post('handshake', [ServerController::class, 'handshake']);
|
$route->match(['GET', 'POST'], 'handshake', [ServerController::class, 'handshake']);
|
||||||
$route->post('report', [ServerController::class, 'report']);
|
$route->post('report', [ServerController::class, 'report']);
|
||||||
$route->get('config', [UniProxyController::class, 'config']);
|
$route->get('config', [UniProxyController::class, 'config']);
|
||||||
$route->get('user', [UniProxyController::class, 'user']);
|
$route->get('user', [UniProxyController::class, 'user']);
|
||||||
|
|||||||
Reference in New Issue
Block a user