server/src/app/Http/Controllers/Api/DocumentController.php
changeset 128 bc18286e55b2
parent 125 e550b10fe3ca
child 130 fac22d8c2df8
--- a/server/src/app/Http/Controllers/Api/DocumentController.php	Tue Feb 23 17:47:57 2016 +0100
+++ b/server/src/app/Http/Controllers/Api/DocumentController.php	Tue Feb 23 17:57:46 2016 +0100
@@ -30,7 +30,7 @@
         if(array_key_exists('data', $res)) {
             $documents = $res['data'];
             unset($res['data']);
-            $res['documents'] = $this->documentRepository->resolveLexvo($documents);
+            //$res['documents'] = $this->documentRepository->resolveLexvo($documents);
         }
         return response()->json($res);
     }
@@ -65,10 +65,10 @@
     public function show($id)
     {
         $doc = $this->documentRepository->get($id);
-        $this->documentRepository->resolveLexvo([$doc,]);
         if(is_null($doc)) {
             abort(404);
         }
+        //$this->documentRepository->resolveLexvo([$doc,]);
         return response()->json(["document" => $doc]);
     }