mirror of
https://github.com/v2board/v2board.git
synced 2024-11-10 17:49: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\ServerUpdate;
|
||||
use App\Services\ServerService;
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\ServerGroup;
|
||||
@ -190,4 +191,11 @@ class ServerController extends Controller
|
||||
'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/update', 'Admin\\ServerController@update');
|
||||
$router->post('/server/copy', 'Admin\\ServerController@copy');
|
||||
$router->post('/server/viewConfig', 'Admin\\ServerController@viewConfig');
|
||||
// Order
|
||||
$router->get ('/order/fetch', 'Admin\\OrderController@fetch');
|
||||
$router->post('/order/repair', 'Admin\\OrderController@repair');
|
||||
|
Loading…
Reference in New Issue
Block a user