server/src/app/Http/Controllers/Api/DocumentController.php
changeset 502 74fba571487e
parent 378 5b47eab083f3
equal deleted inserted replaced
501:7b2dcd2b31c1 502:74fba571487e
    81         $doc = $this->documentRepository->get($id, $short);
    81         $doc = $this->documentRepository->get($id, $short);
    82         if(is_null($doc)) {
    82         if(is_null($doc)) {
    83             abort(404);
    83             abort(404);
    84         }
    84         }
    85         //$this->documentRepository->resolveLexvo([$doc,]);
    85         //$this->documentRepository->resolveLexvo([$doc,]);
       
    86         $this->documentRepository->addCountryInfo($doc);
    86         return response()->json(["document" => $doc]);
    87         return response()->json(["document" => $doc]);
    87     }
    88     }
    88 
    89 
    89     /**
    90     /**
    90      * Display the resource transcript
    91      * Display the resource transcript