This breaks literally the entire panel.
This commit is contained in:
parent
344c1a9885
commit
df87ea0867
88 changed files with 1205 additions and 992 deletions
|
@ -11,7 +11,7 @@ namespace Pterodactyl\Http\Controllers\API\Admin;
|
|||
|
||||
use Fractal;
|
||||
use Illuminate\Http\Request;
|
||||
use Pterodactyl\Models\Service;
|
||||
use Pterodactyl\Models\Nest;
|
||||
use Pterodactyl\Http\Controllers\Controller;
|
||||
use Pterodactyl\Transformers\Admin\ServiceTransformer;
|
||||
|
||||
|
@ -28,7 +28,7 @@ class ServiceController extends Controller
|
|||
$this->authorize('service-list', $request->apiKey());
|
||||
|
||||
return Fractal::create()
|
||||
->collection(Service::all())
|
||||
->collection(Nest::all())
|
||||
->transformWith(new ServiceTransformer($request))
|
||||
->withResourceName('service')
|
||||
->toArray();
|
||||
|
@ -45,7 +45,7 @@ class ServiceController extends Controller
|
|||
{
|
||||
$this->authorize('service-view', $request->apiKey());
|
||||
|
||||
$service = Service::findOrFail($id);
|
||||
$service = Nest::findOrFail($id);
|
||||
$fractal = Fractal::create()->item($service);
|
||||
|
||||
if ($request->input('include')) {
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace Pterodactyl\Http\Controllers\API\Remote;
|
|||
|
||||
use Illuminate\Http\JsonResponse;
|
||||
use Pterodactyl\Http\Controllers\Controller;
|
||||
use Pterodactyl\Contracts\Repository\ServiceOptionRepositoryInterface;
|
||||
use Pterodactyl\Contracts\Repository\EggRepositoryInterface;
|
||||
use Pterodactyl\Services\Services\Options\OptionConfigurationFileService;
|
||||
|
||||
class OptionRetrievalController extends Controller
|
||||
|
@ -22,18 +22,18 @@ class OptionRetrievalController extends Controller
|
|||
protected $configurationFileService;
|
||||
|
||||
/**
|
||||
* @var \Pterodactyl\Contracts\Repository\ServiceOptionRepositoryInterface
|
||||
* @var \Pterodactyl\Contracts\Repository\EggRepositoryInterface
|
||||
*/
|
||||
protected $repository;
|
||||
|
||||
/**
|
||||
* OptionUpdateController constructor.
|
||||
*
|
||||
* @param \Pterodactyl\Contracts\Repository\ServiceOptionRepositoryInterface $repository
|
||||
* @param \Pterodactyl\Contracts\Repository\EggRepositoryInterface $repository
|
||||
* @param \Pterodactyl\Services\Services\Options\OptionConfigurationFileService $configurationFileService
|
||||
*/
|
||||
public function __construct(
|
||||
ServiceOptionRepositoryInterface $repository,
|
||||
EggRepositoryInterface $repository,
|
||||
OptionConfigurationFileService $configurationFileService
|
||||
) {
|
||||
$this->configurationFileService = $configurationFileService;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue