feature/server-mounts initial commit

This commit is contained in:
Matthew Penner 2020-05-20 17:29:03 -06:00
parent 5dbcddc862
commit 59a150148a
5 changed files with 176 additions and 0 deletions

View file

@ -0,0 +1,37 @@
<?php
namespace Pterodactyl\Http\Controllers\Admin\Mounts;
use Pterodactyl\Contracts\Repository\LocationRepositoryInterface;
use Pterodactyl\Http\Controllers\Controller;
class MountController extends Controller
{
/**
* @var \Pterodactyl\Contracts\Repository\LocationRepositoryInterface
*/
protected $repository;
/**
* LocationController constructor.
*
* @param \Pterodactyl\Contracts\Repository\LocationRepositoryInterface $repository
*/
public function __construct(
LocationRepositoryInterface $repository
) {
$this->repository = $repository;
}
/**
* Return the mount overview page.
*
* @return \Illuminate\View\View
*/
public function index()
{
return view('admin.mounts.index', [
'locations' => $this->repository->getAllWithDetails(),
]);
}
}