2023-09-03 08:53:36 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Http\Controllers\Base;
|
|
|
|
|
|
|
|
use Illuminate\View\View;
|
|
|
|
use Illuminate\View\Factory as ViewFactory;
|
|
|
|
use Pterodactyl\Http\Controllers\Controller;
|
|
|
|
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
|
2023-09-07 10:17:04 -04:00
|
|
|
use Pterodactyl\BlueprintFramework\Libraries\ExtensionLibrary\Client\BlueprintClientLibrary;
|
2023-09-03 08:53:36 -04:00
|
|
|
|
|
|
|
class IndexController extends Controller
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* IndexController constructor.
|
|
|
|
*/
|
|
|
|
public function __construct(
|
|
|
|
protected ServerRepositoryInterface $repository,
|
|
|
|
protected ViewFactory $view,
|
2023-09-07 10:21:27 -04:00
|
|
|
private BlueprintClientLibrary $blueprint
|
2023-09-03 08:53:36 -04:00
|
|
|
) {
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns listing of user's servers.
|
|
|
|
*/
|
|
|
|
public function index(): View
|
|
|
|
{
|
|
|
|
return $this->view->make('templates/base.core', [
|
|
|
|
'blueprint' => $this->blueprint,
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
}
|