]> BookStack Code Mirror - bookstack/blobdiff - app/Http/Controllers/BookExportController.php
Reviewed #2393, Removed image guessing and added testing
[bookstack] / app / Http / Controllers / BookExportController.php
index 58868fa5c03036711d47a345cb00584954ab79bb..6d334ca737d62a3079d0695ee79a2601f252d923 100644 (file)
@@ -59,17 +59,7 @@ class BookExportController extends Controller
     public function markdown(string $bookSlug)
     {
         $book = $this->bookRepo->getBySlug($bookSlug);
-        $textContent = $this->exportService->bookToMarkdown($book);
+        $textContent = $this->exportFormatter->bookToMarkdown($book);
         return $this->downloadResponse($textContent, $bookSlug . '.md');
     }
-
-    /**
-     * Export a book as a zip file, made of markdown files.
-     */
-    public function zip(string $bookSlug)
-    {
-        $book = $this->bookRepo->getBySlug($bookSlug);
-        $filename = $this->exportService->bookToZip($book);
-        return response()->download($filename);
-    }
 }