mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-17 22:03:44 +02:00
Improved server creation and options
This commit is contained in:
@@ -142,7 +142,12 @@ class ServersController extends Controller
|
||||
], 500);
|
||||
}
|
||||
|
||||
return response()->json(Models\ServiceOptions::select('id', 'name', 'docker_image')->where('parent_service', $request->input('service'))->orderBy('name', 'asc')->get());
|
||||
$service = Models\Service::select('executable', 'startup')->where('id', $request->input('service'))->first();
|
||||
return response()->json([
|
||||
'exec' => $service->executable,
|
||||
'startup' => $service->startup,
|
||||
'options' => Models\ServiceOptions::select('id', 'name', 'docker_image')->where('parent_service', $request->input('service'))->orderBy('name', 'asc')->get()
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user