app/Http/Controllers/Api/Admin/NodeController.php
/**
     * Display a listing of the resource.
     *
     * @return JsonResponse
     */
Display a listing of the resource.
Display a listing of the resource .
public function index():JsonResponse
    {
        $nodes = Node::all();
        return response()->json(['nodes' => $nodes], HttpResponse::HTTP_OK);
    }
public function index ( ) : JsonResponse { $ nodes = Node :: all ( ) ; return response ( ) -> json ( [ 'nodes' => $ nodes ] , HttpResponse :: HTTP_OK ) ; }
Display a listing of the resource.
Display a listing of the resource .