2015-12-06 13:58:49 -05:00
|
|
|
<?php
|
2016-12-07 22:46:38 +00:00
|
|
|
|
2015-12-06 13:58:49 -05:00
|
|
|
namespace Pterodactyl\Http\Controllers\Base;
|
|
|
|
|
2022-10-14 10:59:20 -06:00
|
|
|
use Illuminate\View\View;
|
|
|
|
use Illuminate\View\Factory as ViewFactory;
|
2015-12-06 13:58:49 -05:00
|
|
|
use Pterodactyl\Http\Controllers\Controller;
|
2017-08-30 21:14:20 -05:00
|
|
|
use Pterodactyl\Contracts\Repository\ServerRepositoryInterface;
|
2016-10-14 17:15:36 -04:00
|
|
|
|
2015-12-06 13:58:49 -05:00
|
|
|
class IndexController extends Controller
|
|
|
|
{
|
2017-08-30 21:11:14 -05:00
|
|
|
/**
|
|
|
|
* IndexController constructor.
|
|
|
|
*/
|
2022-10-14 10:59:20 -06:00
|
|
|
public function __construct(
|
|
|
|
protected ServerRepositoryInterface $repository,
|
|
|
|
protected ViewFactory $view
|
|
|
|
) {
|
2015-12-06 13:58:49 -05:00
|
|
|
}
|
|
|
|
|
2015-12-12 00:21:17 -06:00
|
|
|
/**
|
2017-08-30 21:11:14 -05:00
|
|
|
* Returns listing of user's servers.
|
2015-12-12 00:21:17 -06:00
|
|
|
*/
|
2022-10-14 10:59:20 -06:00
|
|
|
public function index(): View
|
2015-12-12 00:21:17 -06:00
|
|
|
{
|
2022-10-14 10:59:20 -06:00
|
|
|
return $this->view->make('templates/base.core');
|
2015-12-12 00:21:17 -06:00
|
|
|
}
|
2015-12-06 13:58:49 -05:00
|
|
|
}
|