Files

30 lines
713 B
PHP
Raw Permalink Normal View History

2021-01-07 09:32:04 -07:00
<?php
namespace Pterodactyl\Http\Controllers\Api\Application;
use Illuminate\Http\JsonResponse;
use Pterodactyl\Services\Helpers\SoftwareVersionService;
class VersionController extends ApplicationApiController
{
private SoftwareVersionService $softwareVersionService;
/**
* VersionController constructor.
*/
public function __construct(SoftwareVersionService $softwareVersionService)
{
parent::__construct();
$this->softwareVersionService = $softwareVersionService;
}
/**
* Returns version information.
2021-01-07 09:32:04 -07:00
*/
public function __invoke(): JsonResponse
2021-01-07 09:32:04 -07:00
{
return new JsonResponse($this->softwareVersionService->getVersionData());
}
}