File manager - Edit - /var/www/html/spdc/api/app/Http/Controllers/MonitoringController.php
Back
<?php namespace App\Http\Controllers; use App\Http\Services\MonitoringService; use Exception; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; class MonitoringController extends Controller { private MonitoringService $monitoringService; public function __construct() { $this->monitoringService = new MonitoringService(); } public function index(): JsonResponse { try { $response = $this->monitoringService->index(); return response()->json(["monitorings" => $response], JsonResponse::HTTP_OK); } catch (Exception $exceotion) { return response()->json([$exceotion->getMessage()], JsonResponse::HTTP_INTERNAL_SERVER_ERROR); } } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.28 | Generation time: 0.02 |
proxy
|
phpinfo
|
Settings