mirror of
https://github.com/v2board/v2board.git
synced 2024-11-13 11:09:11 +08:00
update
This commit is contained in:
parent
39fadd8a63
commit
d1bf743316
@ -4,6 +4,7 @@ namespace App\Http\Controllers\Admin;
|
|||||||
|
|
||||||
use App\Http\Requests\Admin\ServerSave;
|
use App\Http\Requests\Admin\ServerSave;
|
||||||
use App\Http\Requests\Admin\ServerUpdate;
|
use App\Http\Requests\Admin\ServerUpdate;
|
||||||
|
use App\Services\ServerService;
|
||||||
use Illuminate\Http\Request;
|
use Illuminate\Http\Request;
|
||||||
use App\Http\Controllers\Controller;
|
use App\Http\Controllers\Controller;
|
||||||
use App\Models\ServerGroup;
|
use App\Models\ServerGroup;
|
||||||
@ -190,4 +191,11 @@ class ServerController extends Controller
|
|||||||
'data' => true
|
'data' => true
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function viewConfig(Request $request)
|
||||||
|
{
|
||||||
|
$serverService = new ServerService();
|
||||||
|
$config = $serverService->getConfig($request->input('node_id'), 23333);
|
||||||
|
die(json_encode($config, JSON_UNESCAPED_UNICODE));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -29,6 +29,7 @@ class AdminRoute
|
|||||||
$router->post('/server/drop', 'Admin\\ServerController@drop');
|
$router->post('/server/drop', 'Admin\\ServerController@drop');
|
||||||
$router->post('/server/update', 'Admin\\ServerController@update');
|
$router->post('/server/update', 'Admin\\ServerController@update');
|
||||||
$router->post('/server/copy', 'Admin\\ServerController@copy');
|
$router->post('/server/copy', 'Admin\\ServerController@copy');
|
||||||
|
$router->post('/server/viewConfig', 'Admin\\ServerController@viewConfig');
|
||||||
// Order
|
// Order
|
||||||
$router->get ('/order/fetch', 'Admin\\OrderController@fetch');
|
$router->get ('/order/fetch', 'Admin\\OrderController@fetch');
|
||||||
$router->post('/order/repair', 'Admin\\OrderController@repair');
|
$router->post('/order/repair', 'Admin\\OrderController@repair');
|
||||||
|
Loading…
Reference in New Issue
Block a user