mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
add backup and admin dist
This commit is contained in:
22
app/Http/Controllers/ToolController.php
Normal file
22
app/Http/Controllers/ToolController.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use App\Repositories\ToolRepository;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
class ToolController extends Controller
|
||||
{
|
||||
private $repository;
|
||||
|
||||
public function __construct(ToolRepository $repository)
|
||||
{
|
||||
$this->repository = $repository;
|
||||
}
|
||||
|
||||
public function systemInfo()
|
||||
{
|
||||
$result = $this->repository->getSystemInfo();
|
||||
return $this->success($result);
|
||||
}
|
||||
}
|
||||
@@ -29,6 +29,8 @@ class ExamResource extends JsonResource
|
||||
'indexes_formatted' => $this->formatIndexes($this->resource),
|
||||
'status' => $this->status,
|
||||
'status_text' => $this->statusText,
|
||||
'is_discovered' => $this->is_discovered,
|
||||
'is_discovered_text' => $this->is_discovered_text,
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user